how do I use the print preview dialog?
Private
Sub mnuPrintPreviewDialog_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles mnuPrintPreviewDialog.ClickIf ppdPrintPreviewDialog.ShowDialog = Windows.Forms.DialogResult.OKThentxtMatch.Text = ppdPrintPreviewDialog.Select
EndIfEnd Sub
I have some trouble with this code (maybe the prefix for printpreviewdialog)
also I want to change the (color and font) of my text as I print. How can I do this without changing the initial source code from the print function code
Private
Sub pdPrint_PrintPage(ByVal senderAs System.Object,ByVal eAs System.Drawing.Printing.PrintPageEventArgs)Handles pdPrint.PrintPage' Print the contents of the text box.e.Graphics.DrawString(txtMatch.Text,
New Font("Lucida Console", 12, _FontStyle.Regular), Brushes.Fuchsia, 10, 10)
EndSubexample is I want to change the color of the text I am printing to black not Fuchsia, and I want the font to be Arial not "Lucida Console". How do I do this before I print my document, If I am using executable file.

