Events in Windows Forms SplitContainer (SplitContainerAdv)
3 Sep 2020 / 1 minute to read
The events available for the SplitContainerAdv control are as follows.
- SplitterMoved Event - This event is handled when the splitter is moved to a new position.
private void splitContainerAdv2_SplitterMoved(object sender, SplitterMoveEventArgs args)
{
MessageBox.Show("The Splitter has moved from : " + args.OldSplitPosition.ToString() + " to " + args.NewSplitPosition.ToString());
}
Private Sub splitContainerAdv2_SplitterMoved(ByVal sender As Object, ByVal args As SplitterMoveEventArgs)
MessageBox.Show("The Splitter has moved from : " + args.OldSplitPosition.ToString() + " to " + args.NewSplitPosition.ToString())
End Sub
- SplitterMoving Event - This event is handled while the splitter is moving.
private void splitContainerAdv2_SplitterMoving(object sender, SplitterMoveEventArgs args)
{
MessageBox.Show("The splitter is moving to : " + args.NewSplitPosition.ToString());
}
Private Sub splitContainerAdv2_SplitterMoving(ByVal sender As Object, ByVal args As SplitterMoveEventArgs)
MessageBox.Show("The splitter is moving to : " + args.NewSplitPosition.ToString())
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page