Testing a Dialog Box
You can simulate the run-time behavior of a dialog box from within the Dialog editor without compiling your program. This gives you immediate feedback on how the layout of controls appears and performs, and thus speeds up the user-interface design process.
When you are in test mode, you can:
- Type text, select from combo-box lists, turn options on or off, and choose commands.
- Test the tab order.
- Test the grouping of controls, such as radio buttons or check boxes.
- Test the dialog box's keyboard shortcuts (for controls that have mnemonic keys defined for them).
Note Connections to dialog box code made using wizards are not simulated during dialog box test mode.
When you test a dialog box, it usually displays at a location relative to the main program window. If you've set the dialog box's Absolute Align property to True, the dialog box displays at a position relative to the upper-left corner of the screen.
To test a dialog box
- From the Format menu, choose Test Dialog.
- To end the test session, do one of the following actions:
- Press ESC.
- Close the dialog box using its Close button.
- Choose a push button with a symbol name of IDOK or IDCANCEL.
- or -
- Click the Test Dialog button on the Dialog Editor toolbar.
For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Localizing Web Forms.