Saturday, 24 August 2013

Setting initial state of PrintPreviewDialog controls

Setting initial state of PrintPreviewDialog controls

I'm working with PrintPreviewDialog and want to tweak its initial
presentation from the default. So far, I've done this:
PrintPreviewDialog dlg = new PrintPreviewDialog();
dlg.WindowState = FormWindowState.Maximized;
dlg.PrintPreviewControl.Zoom = 1.0;
...which gives me the presentation I want, but when the dialog is opened,
the zoom control has the "Auto" choice selected, not 100% as would
correspond to the zoom value of 1.0. How can I get at the zoom control to
show 100% as the currently selected zoom setting so as not to confuse the
user?

No comments:

Post a Comment