DesignerWindow Property

Applies To

VBComponent object.

Description

Returns the Window object that represents the component's designer.

Remarks

If the component supports a designer but doesn't have an open designer, accessing the DesignerWindow property creates the designer, but it isn't visible. To make the window visible, set the Window object's Visible property to True.

See Also

Designer property, HasOpenDesigner property, Visible property, Window object.

Example

The following example uses the DesignerWindow and Visible properties to find out whether or not a particular designer is visible. Note that the VBComponent object must be a form.

Debug.Print Application.VBE.VBProjects(1).VBComponents(1). _
    DesignerWindow.Visible