System.Windows.Forms.Splitter.SplitterMoved Event

Occurs when the splitter control is moved. Splitter.SplitterMoved has been replaced by SplitContainer.SplitterMoved and is provided only for compatibility with previous versions.

Syntax

public event SplitterEventHandler SplitterMoved

Remarks

You can create an event handler for the Splitter.SplitterMoved event to perform resize validation in your application. For example, if a System.Windows.Forms.Splitter control is docked to the edges of a System.Windows.Forms.TreeView control and a System.Windows.Forms.ListView control, you can write code in the Splitter.SplitterMoved event to determine if the minimum and/or maximum size for the System.Windows.Forms.TreeView and System.Windows.Forms.ListView controls has been exceeded and resize the controls to their minimum or maximum size.

For more information about handling events, see Consuming Events.

Requirements

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