SplitterMoved Event

Splitter.SplitterMoved Event

Occurs when the splitter control is moved.

[Visual Basic]
Public Event SplitterMoved As SplitterEventHandler
public event SplitterEventHandler SplitterMoved;
public: __event SplitterEventHandler* SplitterMoved;

[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).


You can create an event handler for the SplitterMoved 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 resize the controls to their minimum or maximum size.

For more information about handling events, see Consuming Events.


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 | OnSplitterMoved | SplitterEventArgs | SplitterEventHandler | SplitterMoving

© 2015 Microsoft