Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
Nenustrip to UltraTreeNode
posted

I want to add to UltraTreeNode, a menustrip.

So that when I write click with the mouse on the UltraTreeNode, I a list of options.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The MenuStrip extends an entire control, so you cannot add a context menu or MenuStrip to a part of a control. What you have to do is use the MouseMove event and determine what node the mouse is over (or if the mouse is over any node at all), and then set the ConextMenuStrip for the entire control based on the position of the mouse.

    To determine the node that the mouse is over you can use the GetNodeFromPoint method of the tree.

Children
No Data