Hi,
I am using an infragistics UltraTree control in Windows Application.
I added context menu to it. When I right clicked on any node, I want to get the node at that point to displya the relevent information of that node. So I wrote the below code for that
Private Sub tvXML_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles tvXML.MouseUp
Dim newTreeNode As UltraTreeNode
newTreeNode = tvXML.GetChildAtPoint(
New Point(e.X, e.Y))
DisplayInfo(newTreeNode)
End Sub
But, GetChildAtPoint() function always returns Nothing. so, I get nothing displayed.
Please let me know if the way I am doing is correct.
Thanks in advance.
Vijay
Enter your message below
Sign in or Join us (it's free).