Splitter.SplitterMoving Event
Occurs when the splitter control is in the process of moving.
[Visual Basic] Public Event SplitterMoving As SplitterEventHandler [C#] public event SplitterEventHandler SplitterMoving; [C++] public: __event SplitterEventHandler* SplitterMoving;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
Event Data
The event handler receives an argument of type SplitterEventArgs containing data related to this event. The following SplitterEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| SplitX | Gets or sets the x-coordinate of the upper-left corner of the Splitter (in client coordinates). |
| SplitY | Gets or sets the y-coordinate of the upper-left corner of the Splitter (in client coordinates). |
| X | Gets the x-coordinate of the mouse pointer (in client coordinates). |
| Y | Gets the y-coordinate of the mouse pointer (in client coordinates). |
Remarks
You can create an event handler for the SplitterMoving event to perform resize validation in your application. For example, if a Splitter control is docked to the edges of a TreeView control and a ListView control, you can write code in the SplitterMoved event to determine if the minimum and/or maximum size for the TreeView and ListView controls has been exceeded and restrict the resizing of the controls to their minimum or maximum size.
For more information about handling events, see Consuming Events.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Splitter Class | Splitter Members | System.Windows.Forms Namespace | OnSplitterMoving | SplitterEventArgs | SplitterEventHandler | SplitterMoved