Common Dialog Control

Using the Control

To show one of the dialog boxes contained in the Common Dialog control, you need to use the following syntax:

CommonDialog1.DialogBox

Where DialogBox is one of the following methods (the methods in italic are not covered in this article):

Method Action
ShowSave Displays the Save Dialog
ShowOpen Displays the Open Dialog
ShowPrinter Displays the Print Dialog
ShowColor Displays the Colour Dialog
ShowHelp Displays the Help Dialog
ShowFont Displays the Font Dialog

As you can see, it is very easy to user the Common Dialog Control. However, in order to use the control to its full potential, you need to set a few parameters before showing the dialog. These parameters will be different, depending on which dialog you want to show. The next few sections describe them.

You might also like...

Comments

About the author

James Crowley

James Crowley United Kingdom

James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audien...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves” - Alan Kay