Dialogs
Dialogs
Dialogs are windows displayed by a program for the purpose of exchanging specific information with the user. There are two kinds of dialogs:
- Modal dialogs block all other interaction with the program until the dialog is closed.
- Non-modal dialogs allow the user to interact with the program in other ways while the dialog is open.
We will examine three classes provided by Microsoft® .NET 6, each of which implements a modal dialog. .NET provides various other classes, such as FolderBrowserDialog , FontDialog , and ColorDialog , that also implement specific kinds of dialogs. We conclude by discussing how custom dialogs may be built using Visual Studio®.