Treeview Drag User Cancel (No event found)

2 posts, 1 answers
  1. NorthGates
    NorthGates avatar
    13 posts
    Member since:
    Oct 2012

    Posted 26 Oct 2012 Link to this post

    I am trying to implement my own Drag hint line. All is well but if the user cancel the drag operation I cannot hide my hint line because I cannot find the event where I can tell the user canceled the drag.

    I tried a few thing with no luck. Example, the user starts to drag a node then stays on that node and release the mouse.
    MouseUp, NodeMouseUp don't fire. Same thing when the user starts the drag operation but hits Escape key.

    Anybody has a trick?
  2. Answer
    NorthGates
    NorthGates avatar
    13 posts
    Member since:
    Oct 2012

    Posted 26 Oct 2012 Link to this post

    Found it!... Work around is:
    private void tv_NodeMouseMove(object sender, RadTreeViewMouseEventArgs e)
    {
        if (Control.MouseButtons == System.Windows.Forms.MouseButtons.None && dragLine.Visible)
            dragLine.Visible = false;
    }
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top