Compartilhar via


Dialog Editor

 

The latest version of this topic can be found at Dialog Editor.

The Dialog editor allows you to create or edit dialog box resources. You open the dialog editor by double-clicking on a dialog’s .rc file in the Resource View window (View | Resource View). Note that Resource View is not available in Express editions.

One of the first steps in making a new dialog box (or dialog box template) is adding controls to the dialog box. In the Dialog editor, you can arrange controls to fit a certain size, shape, or alignment, or you can move them around to work within the dialog box. It's also easy to delete a control.

You can store a dialog box as a template so you can reuse it. You can also easily switch between designing the dialog box and editing the code that implements it.

It's also possible to edit properties of single or multiple controls in the Dialog editor. You can change the tab order, that is, the order in which controls gain focus when the TAB key is pressed, or you can define an access key (a key combination) that allows users to choose a control using the keyboard. For a list of preset access keys, see Accelerator Keys for the Dialog Editor.

The Dialog editor also allows you to use custom controls, including ActiveX controls. In addition, you can edit a form view, Record Views, or Dialog Bars.

Starting with Visual Studio 2015, you can use the dialog editor to define dynamic layouts, which specify how controls move and resize when the user resizes a dialog. For more information, see Dynamic Layout.

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: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Resource Editors
Controls
Control Classes
Dialog Box Classes
Dialog Box Controls and Variable Types