Dialog Boxes

A dialog box is used to prompt the user for input. The application can then use the user input for its own processing. You can either use one of the existing dialog box components provided by the Windows Forms library or you can create a dialog box to meet your custom application requirements. The following sections cover both of these scenarios.

Common Dialog Boxes

The Windows Forms library provides the following dialog box classes that are ready to use in Windows applications:

  • ColorDialog Displays a list of colors and returns a property that contains the color selected by user.

  • FontDialog Displays a dialog box that allows the user to select a font and other text properties, such as size, style, and special effects.

  • OpenFileDialog ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .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.