This documentation is archived and is not being maintained.

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.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public:
event SplitterEventHandler^ SplitterMoving {
	void add (SplitterEventHandler^ value);
	void remove (SplitterEventHandler^ value);
}
/** @event */
public void add_SplitterMoving (SplitterEventHandler value)

/** @event */
public void remove_SplitterMoving (SplitterEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: