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.
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.