Version

GetUltraToolTip Method

Gets a ToolTipInfo object for the specified control.
Syntax
'Declaration
 
Public Function GetUltraToolTip( _
   ByVal control As Control _
) As UltraToolTipInfo
public UltraToolTipInfo GetUltraToolTip( 
   Control control
)

Parameters

control
The System.Windows.Forms.Control whose tooltip should be retrieved.
Remarks

If a ToolTipInfo already exists for the control, it is returned. If not, a new ToolTipInfo is created.

Example
The following code demonstrates getting the ToolTipInfo for a control and setting basic properties.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

Private Sub InitializeToolTipInfo()
        ' Get the ToolTipInfo for TextBox1
        Dim toolTipInfo As UltraToolTipInfo = Me.UltraToolTipManager1.GetUltraToolTip(Me.TextBox1)

        ' Set the ToolTipText.
        toolTipInfo.ToolTipText = "Enter some text here."

        ' Set the ToolTipTitle
        toolTipInfo.ToolTipTitle = "This is textBox1"

        ' Apply an image
        toolTipInfo.ToolTipImage = ToolTipImage.Info

        ' Apply an appearance
        toolTipInfo.Appearance.BackColor = Color.White
        toolTipInfo.Appearance.BackColor2 = Color.Chartreuse
        toolTipInfo.Appearance.BackGradientStyle = GradientStyle.Circular
        toolTipInfo.Appearance.ForeColor = Color.Black

        ' Apply an appearance to the Title. 
        toolTipInfo.ToolTipTitleAppearance.ForeColor = Color.Red
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void InitializeToolTipInfo()
{
	// Get the ToolTipInfo for TextBox1
	UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);
			
	// Set the ToolTipText.
	toolTipInfo.ToolTipText = "Enter some text here.";
			
	// Set the ToolTipTitle
	toolTipInfo.ToolTipTitle = "This is textBox1";
			
	// Apply an image
	toolTipInfo.ToolTipImage = ToolTipImage.Info;
			
	// Apply an appearance
	toolTipInfo.Appearance.BackColor = Color.White;
	toolTipInfo.Appearance.BackColor2 = Color.Chartreuse;
	toolTipInfo.Appearance.BackGradientStyle = GradientStyle.Circular;
	toolTipInfo.Appearance.ForeColor = Color.Black;

	// Apply an appearance to the Title. 
	toolTipInfo.ToolTipTitleAppearance.ForeColor = Color.Red;			
}
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