System.Windows.Forms.ToolTip.GetToolTip Method

Retrieves the ToolTip text associated with the specified control.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string GetToolTip (Control control)

Parameters

control
The System.Windows.Forms.Control for which to retrieve the System.Windows.Forms.ToolTip text.

Returns

A string containing the ToolTip text for the specified control.

Remarks

With the ToolTip.GetToolTip(Control) method, you can retrieve the ToolTip text for any control. If the ToolTip text changes dynamically in an application, you can use this method to find out what text is displayed at any point, depending on the state of the application. To change the text that a control is displaying, use the ToolTip.SetToolTip(Control, string) method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0