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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: TreeViewAdv


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


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile