Maximize Print Preview?

2020-03-30 05:21发布

问题:

Is there any way to Maximize the Print Preview Dialogue?

I could not see any Maximize property on the controls at properties window.

回答1:

It's not available in the properties page because you have to cast the PrintPreviewDialog to a Form in order to access those Form properties:

DirectCast(PrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized


回答2:

For C#:

(PrintPreviewDialog1 as Form).WindowState = FormWindowState.Maximized;