This documentation is archived and is not being maintained.

ToolTip.GetToolTip Method

Retrieves the ToolTip text associated with the specified control.

[Visual Basic]
Public Function GetToolTip( _
   ByVal control As Control _
) As String
public string GetToolTip(
 Control control
public: String* GetToolTip(
 Control* control
public function GetToolTip(
   control : Control
) : String;


The Control for which to retrieve the ToolTip text.

Return Value

The ToolTip text for the specified control.


This method enables you to 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ToolTip Class | ToolTip Members | System.Windows.Forms Namespace | SetToolTip