次の方法で共有


Viewing and Adding ActiveX Controls to a Dialog Box

 

The latest version of this topic can be found at Viewing and Adding ActiveX Controls to a Dialog Box.

Visual Studio enables you to insert ActiveX controls into your dialog box.

To see the ActiveX controls you have available

  1. Open a dialog box in the Dialog editor.

  2. Right click anywhere in the body of the dialog box.

  3. On the shortcut menu, click Insert ActiveX Control.

    The Insert ActiveX Control dialog box appears, showing all the ActiveX controls on your system. At the bottom of the dialog box, the path to the ActiveX Control file appears.

To add an ActiveX control to a dialog box

  1. In the Insert ActiveX Control dialog box, select the control you want to add to your dialog box and click OK.

    The control appears in the dialog box, where you can edit it or create handlers for it just as you would any other control.

    Note

    You can add ActiveX controls to the Toolbox window. For more information, see Managing Items and Tabs in the Toolbox.

    Warning

    It may not be legal to distribute all of the ActiveX controls on your system. Please refer to the license agreement for the software that installed the controls or contact the software company.

    You can place controls in the Toolbox window for easy access. For more information, see Customize Toolbox dialog box.

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

Controls in Dialog Boxes
MFC ActiveX Controls
ActiveX Control Containers