Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Dialog Boxes in Windows Forms

Visual Studio .NET 2003

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 using the Windows Forms Designer. 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 an overview, see Dialog-Box Controls and Components (Windows Forms).

In This Section

Creating Dialog Boxes
Gives directions for dialog box construction.
Displaying Dialog Boxes for Windows Forms
Gives directions for showing dialog boxes.
User Input to Dialog Boxes
Describes the property that stores the information created when a dialog box is closed.
Closing Dialog Boxes and Retaining User Input
Gives directions for working with the property that stores the information created when a dialog box is closed.
Retrieving the Result for Dialog Boxes
Gives directions for working with the resultant information generated by a dialog box being closed.
Retrieving Dialog Box Information Selectively Using Multiple Properties
Gives directions for using properties to return individual elements of dialog box data.
Walkthrough: Retrieving Dialog Box Information Collectively Using Objects
Gives directions for using an object to expose a group of related data from a dialog box.
Retrieving Information from the Parent Form of a Dialog Box
Gives directions for accessing information from a dialog box's parent form.
Displaying Message Boxes
Gives directions for showing message boxes.

Related Sections

Dialog-Box Controls and Components (Windows Forms)
Lists the predefined dialog box controls.
Displaying Modal and Modeless Windows Forms
Gives directions for showing a dialog box modally versus modelessly.
Introduction to the Windows Forms TabControl
Explains how you incorporate the tab control into a dialog box.
What's New in Windows Forms and Controls
Describes the new features of Windows Forms and controls in Visual Basic .NET.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.