Testing a Dialog Box

When you're designing a dialog box, you can simulate and test its run-time behavior without compiling your program. In this 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 and check boxes.

  • Test the keyboard shortcuts for controls in the dialog box.

    Note

    Connections to dialog box code made by using wizards are not included in the simulation.

When you test a dialog box, it typically displays at a location that's 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 that's relative to the upper-left corner of the screen.

To test a dialog box

  1. When the Dialog editor is the active window, on the menu bar, choose Format, Test Dialog.

  2. To end the simulation, press Esc, or just choose the Close button in the dialog box you are testing.

For information about how to add resources to managed projects, please see Resources in Desktop Apps. For information about how to manually add resource files to managed projects, access resources, display static resources, and assign resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Tasks

Showing or Hiding the Dialog Editor Toolbar

Reference

Controls in Dialog Boxes

Dialog Editor