Udostępnij za pośrednictwem


Adding a Control to a Dialog Box

To add a control to a dialog box

  • On the Dialog Editor Tab of the Toolbox Window, select the control you want, then:

    • Click the dialog box at the location where you want to place the control. The control appears where you've clicked. For information, see Adding Multiple Controls.

      - or -

    • Drag and drop the control from the Toolbox window to the location on your dialog box. For more information, see Sizing a Control While You Add It.

      - or -

    • Double-click the control in the Toolbox window (it appears on your dialog box) then reposition the control to the location you prefer.

For information about the types of controls available on the Toolbox window, see Dialog Editor Tab, Toolbox Window.

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

Reference

Controls in Dialog Boxes

Adding Event Handlers for Dialog Box Controls

Dialog Box Controls and Variable Types