System.Windows.Forms.Design.IUIService.ShowComponentEditor Method

Attempts to display a System.Windows.Forms.Design.ComponentEditorForm for a component.

Syntax

public bool ShowComponentEditor (object component, System.Windows.Forms.IWin32Window parent)

Parameters

component
The component for which to display a System.Windows.Forms.Design.ComponentEditorForm.
parent
The System.Windows.Forms.IWin32Window to parent any dialog boxes to.

Returns

true if the attempt is successful; otherwise, false.

Remarks

A System.Windows.Forms.Design.ComponentEditorForm is similar to a property page from the Component Object Model (COM).

If the component does not support component editors, an ArgumentException is thrown. To avoid this, be sure to call IUIService.CanShowComponentEditor(object) first.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0