' If you don't want the print button to print the print button Button1.Visible = False ' Set the PrintAction to display a Print Preview dialog PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview ' This prints a copy of the form as it appears in the PrintPreview PrintForm1.Print() ' Display the print button again on the form Button1.Visible = True
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question