We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How do we know Dragging has been started or stopped?

 

Dragging status can be obtained by handling the DragFeedbackStart and DragFeedbackStop events. These events get fired when the splitter controls associated with any docked controls are dragged.

The DragFeedBackStart event will get fire before the drag operation and DragFeedbackStop event will get fire after the drag operation.

The DockingManager.DragFeedBackOnSplitter property holds the value to enable/disable the DragFeedBack events upon dragging splitters. Please refer the below code snippet which illustrates this:

C#

this.dockingManager1.DragFeedbackEventsOnSplitters = true;

this.dockingManager1.DragFeedbackStart += new EventHandler(dockingManager1_DragFeedbackStart);

this.dockingManager1.DragFeedbackStop += new EventHandler(dockingManager1_DragFeedbackStop);

public void dockingManager1_DragFeedbackStart(object sender, EventArgs e)

{

MessageBox.Show("Dragging has been started");

}

public void dockingManager1_DragFeedbackStop(object sender, System.EventArgs e)

{

MessageBox.Show("Dragging has been stopped");

}

VB

Me.DockingManager1.DragFeedbackEventsOnSplitters = True

AddHandler DockingManager1.DragFeedbackStart, AddressOf dockingManager1_DragFeedbackStart

AddHandler DockingManager1.DragFeedbackStop, AddressOf DockingManager1_DragFeedbackStop

Public Sub dockingManager1_DragFeedbackStart(ByVal sender As Object, ByVal e As EventArgs)

MessageBox.Show("Dragging has been started")

End Sub

Public Sub dockingManager1_DragFeedbackStop(ByVal sender As Object, ByVal e As System.EventArgs)

MessageBox.Show("Dragging has been stopped")

End Sub

Sample:

http://help.syncfusion.com/support/samples/kb/Tools.Windows/TDFeedback/DragFeedBack.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
1511 04/30/2011 07/10/2014 Windows Forms DockingManager
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.