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.
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.
| Property | Description |
|---|---|
| Components | Get an array of components involved in selection change. |
| SelectionType | An enumerated value indicating the type of selection being performed. |
For disallowing selection of a component, set Cancel property of the event argument to True.
FormDesigner Class | Viklele.Win.Designer Namespace | SelectionChanged | SelectionChanging