This documentation is archived and is not being maintained.

ToolTip.GetToolTip Method

Retrieves the ToolTip text associated with the specified control.

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

public string GetToolTip (
	Control control
/** @attribute LocalizableAttribute(true) */ 
public String GetToolTip (
	Control control
public function GetToolTip (
	control : Control
) : String
Not applicable.



The Control for which to retrieve the ToolTip text.

Return Value

A String containing the ToolTip text for the specified control.

With the GetToolTip 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 SetToolTip method.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0