TreeNode::ToolTipText Property

 

Gets or sets the text that appears when the mouse pointer hovers over a TreeNode.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property String^ ToolTipText {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

Gets the text that appears when the mouse pointer hovers over a TreeNode.

You must set the ShowNodeToolTips property of the parent TreeView to true for the ToolTipText to be visible at run time.

If the TreeView control has a ToolTip and also contains a TreeNode that has a ToolTip, only the ToolTip for the node will be shown.

The following code example demonstrates how to use the ToolTipText and ShowNodeToolTips properties. To run this example, paste the following code into a Windows Form and call InitializeTreeViewWithToolTips from the form's constructor or Load event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: