Articles in this section
Category / Section

How to display node's information for each node in WinForms TreeviewAdv using SuperTooltips?

1 min read


We can show the node's information in SuperToolTip when mouse is hovering over a TreeNodeAdv using TreeViewAdv's MouseHover event.


private void treeViewAdv1_MouseHover(object sender, EventArgs e)
   Point p = this.treeViewAdv1.PointToClient(new Point(MousePosition.X, MousePosition.Y));
   Syncfusion.Windows.Forms.Tools.TreeNodeAdv node = this.treeViewAdv1.PointToNode(p);
      ToolTipInfo t1 = new ToolTipInfo();
      t1.Body.Text = node.Text;
      Point mouseLoc = Control.MousePosition;
      mouseLoc.Offset(0, 0);
      this.superToolTip1.Show(t1, mouseLoc);


Private Sub treeViewAdv1_MouseHover(ByVal sender As Object, ByVal e As EventArgs)
   Dim p As Point = Me.treeViewAdv1.PointToClient(New Point(MousePosition.X, MousePosition.Y))
   Dim node As Syncfusion.Windows.Forms.Tools.TreeNodeAdv = Me.treeViewAdv1.PointToNode(p)
   If node.TextBounds.Contains(p) Then
      Dim t1 As ToolTipInfo = New ToolTipInfo()
      t1.Body.Text = node.Text
      Dim mouseLoc As Point = Control.MousePosition
      mouseLoc.Offset(0, 0)
      Me.superToolTip1.Show(t1, mouseLoc)
   End If
End Sub


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment