How is code writen for PrintPreviewDialog1 .show and show the dialog at maximum (Full Screen)

Gary Simpson 471 Reputation points

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.Controls(MaximumSize) = True

    End Sub

is it possible to make the at Maximum size, when the dialog shows

Kind Regards

An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,599 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Gary Simpson 471 Reputation points

    Hi Castorix31

    Thank you for Looking at my question and getting back to me.

    Brilliant your code works well.

    Thanks again Castorix31

    Kind Regards

    0 comments No comments