Share via


Visual Basic Concepts

Connecting a Property Page to an ActiveX Control

Once you’ve added property pages to your ActiveX control project, you can use the Connect Property Pages dialog box to establish a connection between a control and the property pages you want it to use.

When a user shows the Property Pages dialog box for an instance of one of your controls, each of the pages you connected to the control will appear as one tab in the dialog box.

To connect property pages to a control

  1. In the Project Explorer window, double-click the control to open its designer.

  2. Press F4 to open the Properties window.

  3. Double-click the PropertyPages property (or select the property and then click the ellipsis button) to open the Connect Property Pages dialog box.

  4. Place a check mark beside each property page you want to appear when the developer who uses your control opens the Property Pages dialog box.

  5. Use the Page Order buttons to put the pages in the order you want them to appear in the Property Pages dialog box, then click OK.

For More Information   The standard property pages for fonts, colors, and pictures are discussed in "Using Standard Property Pages."