System.Windows.Forms.Splitter.SplitterMoving Event

Occurs when the splitter control is in the process of moving. Splitter.SplitterMoving has been replaced by SplitContainer.SplitterMoving and is provided only for compatibility with previous versions.

Syntax

public event SplitterEventHandler SplitterMoving

Remarks

You can create an event handler for the Splitter.SplitterMoving 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 restrict the resizing of 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