ethicalhacker
Well-known member
the code
doesn't work for me
I have a rich text box on the child form and want to print preview its contents
I use
to declare my active mdi child form.
I have put the print preview dialog control on the mdi parent form.
VB.NET:
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.ShowDialog()
I have a rich text box on the child form and want to print preview its contents
I use
VB.NET:
Dim child As frmChild = TryCast(Me.ActiveMdiChild, frmChild)
I have put the print preview dialog control on the mdi parent form.