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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

 

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

C#

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);

if (node.TextBounds.Contains(p))

{

ToolTipInfo t1 = new ToolTipInfo();

t1.Body.Text = node.Text;

Point mouseLoc = Control.MousePosition;

mouseLoc.Offset(0, 0);

this.superToolTip1.Show(t1, mouseLoc);

}

}

VB

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

Sample:

http://help.syncfusion.com/support/samples/kb/tools.windows/kb_supertooltip_treeviewadv/Tools_WF_SuperTooltip_TreeviewAdv.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
1781 04/30/2011 07/10/2014 WinForms TreeViewAdv
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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