Jump to content
Xtreme .Net Talk

CommonDialog Flags?


Recommended Posts

Posted
How do we get the same functionality out of the common dialogs that we got with the Flags property? I'm desperately trying to figure out how the hell to preselect the Selection option button in the print dialog, and how to check if it has been selected after the dialog box has closed, but Microsoft's Help is worthless. Any suggestions/ ideas/ clues?:(
  • *Gurus*
Posted
       Dim myPrintDialog As New PrintDialog()
       Dim mySettings As New Drawing.Printing.PrinterSettings()

       mySettings.PrintRange = Drawing.Printing.PrintRange.Selection
       myPrintDialog.AllowSelection = True
       myPrintDialog.PrinterSettings = mySettings
       myPrintDialog.ShowDialog()

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...