A runtime form designer control

FormDesigner.ComponentSelecting Event

Occurs for each component that is getting selected during a component selection operation.

[Visual Basic]
Public Event ComponentSelecting As SelectionEventHandler 
[C#]
public event SelectionEventHandler ComponentSelecting;
[C++]
public: __event SelectionEventHandler* ComponentSelecting;

[JScript] In JScript, you can use the events defined by a type, but you cannot define your own.

Event Data

The event handler receives an argument of type SelectionEventArgs containing data related to this event. The following SelectionEventArgs properties provide information specific to this event.

PropertyDescription
Components Get an array of components involved in selection change.
SelectionType An enumerated value indicating the type of selection being performed.

Remarks

For disallowing selection of a component, set Cancel property of the event argument to True.

See Also

FormDesigner Class | Viklele.Win.Designer Namespace | SelectionChanged | SelectionChanging