Version

ShowToolTip(Control,Boolean,Point) Method

Shows the UltraToolTip for the specified control.
Syntax
'Declaration
 
Public Overloads Sub ShowToolTip( _
   ByVal control As Control, _
   ByVal excludeControlBounds As Boolean, _
   ByVal targetPoint As Point _
) 
public void ShowToolTip( 
   Control control,
   bool excludeControlBounds,
   Point targetPoint
)

Parameters

control
The control whose tooltip will be displayed.
excludeControlBounds
When true, the tooltip will avoid displaying on top of the control. The tooltip will be repositioned so that it does not obscure any part of the control.
targetPoint
The target point (in screen coordinates) at which the tooltip will be shows. For a standard tooltip, this indicates the upper left corner of the tooltip window. For a BalloonTip, this indicates the point to which the callout will point.
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 traps the MouseHover event of a label and calls ShowToolTip.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

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

        Dim upperLeftCorner As Point = Me.PointToScreen(label.Location)

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

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

	Point upperLeftCorner = this.PointToScreen(label.Location);

	// Show the ToolTip
	this.ultraToolTipManager1.ShowToolTip(label, true, upperLeftCorner);	
}
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