Common Dialog Controls

VB.NET supports the Windows Common Dialogs. These dialogs are part of the Windows operating systems and are available for all applications to use. In VB.NET, they are provided as controls and include the following:

  • OpenFileDialog

  • SaveFileDialog

  • ColorDialog

  • FontDialog

  • PrintDialog

  • PrintPreviewDialog

  • PageSetupDialog

These dialogs provide part of the consistency that you find in the look and feel of all Windows applications.

Each of these controls has different properties that can be used to interact with the data they collect. For example, the ColorDialog has a Color property to access the color the user selected and the FontDialog has a Font property to access the font the user selected. In addition, the ShowDialog method, which ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.