Compartilhar via


Dialog Boxes in Windows Forms

Dialog boxes are used to interact with the user and retrieve information. In simple terms, a dialog box is a form with its FormBorderStyle enumeration property set to FixedDialog. You can construct your own custom dialog boxes by using the Windows Forms Designer in Visual Studio. Add controls such as Label, Textbox, and Button to customize dialog boxes to your specific needs. The .NET Framework also includes predefined dialog boxes, such as File Open and message boxes, which you can adapt for your own applications. For more information, see Dialog-Box Controls and Components (Windows Forms).

In This Section

Topic Location
How to: Retrieve Dialog Box Information Selectively Using Multiple Properties Windows Forms Programming
How to: Retrieve Information from the Parent Form of a Dialog Box Windows Forms Programming
User Input to Dialog Boxes Windows Forms Programming
How to: Retrieve the Result for Dialog Boxes Windows Forms Programming
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Windows Forms Programming
How to: Close Dialog Boxes and Retain User Input Windows Forms Programming
How to: Create Dialog Boxes at Design Time Windows Forms Programming
How to: Display Message Boxes Windows Forms Programming
How to: Retrieve Dialog Box Information Selectively Using Multiple Properties Windows Forms Programming
How to: Retrieve Information from the Parent Form of a Dialog Box Windows Forms Programming
User Input to Dialog Boxes Windows Forms Programming
How to: Retrieve the Result for Dialog Boxes Windows Forms Programming
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Windows Forms Programming
How to: Close Dialog Boxes and Retain User Input Windows Forms Programming
How to: Create Dialog Boxes at Design Time Windows Forms Programming
How to: Display Message Boxes Windows Forms Programming
How to: Retrieve Dialog Box Information Selectively Using Multiple Properties Windows Forms Programming
How to: Retrieve Information from the Parent Form of a Dialog Box Windows Forms Programming
User Input to Dialog Boxes Windows Forms Programming
How to: Retrieve the Result for Dialog Boxes Windows Forms Programming
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Windows Forms Programming
How to: Close Dialog Boxes and Retain User Input Windows Forms Programming
How to: Create Dialog Boxes at Design Time Windows Forms Programming
How to: Display Message Boxes Windows Forms Programming
How to: Retrieve Dialog Box Information Selectively Using Multiple Properties Windows Forms Programming
How to: Retrieve Information from the Parent Form of a Dialog Box Windows Forms Programming
User Input to Dialog Boxes Windows Forms Programming
How to: Retrieve the Result for Dialog Boxes Windows Forms Programming
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects Windows Forms Programming
How to: Close Dialog Boxes and Retain User Input Windows Forms Programming
How to: Create Dialog Boxes at Design Time Windows Forms Programming
How to: Display Message Boxes Windows Forms Programming