Version

ShowToolTip(Control) Method

Shows the UltraToolTip for the specified control.
Syntax
'Declaration
 
Public Overloads Sub ShowToolTip( _
   ByVal control As Control _
) 
public void ShowToolTip( 
   Control control
)

Parameters

control
The control whose tooltip will be displayed.
Remarks

If there is no ToolTipInfo for the specified control, an System.ArgumentException is raised.

Note: An UltraToolTip will automatically hide when the AutoPopDelay expires, when a mouse button is clicked, or when the HideToolTip Method is called. It will also automatically hide when the mouse leaves the control for which it is shown. So if the mouse is not currently within the control passed into this method, it may cause unexpected results, as a MouseLeave will not occur unless the mouse enters and then leaves the control.

Example
The following code trap the MouseHover event of a label and calls ShowToolTip.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

Private Sub lblShowToolTip1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles lblShowToolTip1.MouseHover
        Dim label As UltraLabel = DirectCast(sender, UltraLabel)

        ' Show the ToolTip
        Me.ultraToolTipManager1.ShowToolTip(label)
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void lblShowToolTip1_MouseHover(object sender, System.EventArgs e)
{
	UltraLabel label = sender as UltraLabel;

	// Show the ToolTip
	this.ultraToolTipManager1.ShowToolTip(label);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also