Export (0) Print
Expand All

ToolTip.GetToolTip Method

Retrieves the ToolTip text associated with the specified control.

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

Parameters

control
The Control for which to retrieve the ToolTip text.

Return Value

The ToolTip text for the specified control.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft