You can do :
DirectCast(PrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized
PrintPreviewDialog1.ShowDialog()
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Good People
I have a button that shows Print Preview Dialog1, But when the Print Preview Dialog1 shows the size of the Print Preview Dialog1 is small
When I want to show the Print Preview Dialog1 at maximum ( Full Screen )
I have tried using the Print Preview Dialog1 form controls But I keep getting errors in the code.
Private Sub CmdPrintPreview_Click(sender As Object, e As EventArgs) Handles CmdPrintPreview.Click
PrintPreviewDialog1.ShowDialog()
PrintPreviewDialog1.Controls(MaximumSize) = True
End Sub
is it possible to make the PrintPreviewDialog1.show at Maximum size, when the dialog shows
Kind Regards
Gary
You can do :
DirectCast(PrintPreviewDialog1, Form).WindowState = FormWindowState.Maximized
PrintPreviewDialog1.ShowDialog()
Hi Castorix31
Thank you for Looking at my question and getting back to me.
Brilliant your code works well.
Thanks again Castorix31
Kind Regards
Gary