PrintPreview - display maximized

  • Thread starter Thread starter Glenn Lerner
  • Start date Start date
G

Glenn Lerner

How can I set PrintPreview dialog property so it will display maximized.
I see properties such as Width and Height but I don't want to specify
the size (because based on screen resolution I'm not sure which value to
use).

Also, can I change the icon on PrintPreview dialog?

Thanks,
Glenn
 
Hi Glenn,
I guess you are right about the print preview control. There is no maximised
state. In order to overcome your predicament as to the screen resolution,
you could use the width and height of the parent form to set the same for
the print preview control

For eg:
PrintPreview1.Height = this.MaximumSize.Height;
PrintPreview.Width = this.MaximumSize.Width;

HTH
-Diwakar
I am not sure if you can change the Icon as there is no property that is
exposed to access the icon.

-D
 
Back
Top