Version

Enabled Property (UltraToolTipInfo)

Gets / sets whether the tooltip will be shown when the mouse is over the control.
Syntax
'Declaration
 
Public Property Enabled As DefaultableBoolean
public DefaultableBoolean Enabled {get; set;}
Remarks

The default setting of this property is DefaultableBoolean.Default. By default, the tooltip will display when the mouse is over the control in the same position and the amount of time specified by the UltraToolTipManager.InitialDelay propety has expired. A tooltip will only display by default if the ToolTipText has been set.

A setting of DefaultableBoolean.False will prevent the tooltip from displaying.

A setting of DefaultableBoolean.True will allow the tooltip to display even when ToolTipText has not been set. This is user if, for example, it is neccessary to show a tooltip with just an image or an image and title with no text.

Note that regardless of the setting of this property, no tooltips will be displayed if the UltraToolTipManager.Enabled property of the UltraToolTipManager component is set to false.

Example
The following code shows how to display a tooltip with just an image (no text). To do this, you must explicity set the Enabled property.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolTip

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

        ' Apply an image
        toolTipInfo.ToolTipImage = ToolTipImage.Custom
        toolTipInfo.Appearance.Image = Bitmap.FromFile("C:\Images\ToolTipImage.bmp")

        ' Normally, a tooltip will not display unless the ToolTipText has been set. 
        ' However, you can force a tooltip to display without text by
        ' explicitly setting Enabled to True. 
        toolTipInfo.Enabled = DefaultableBoolean.True
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolTip;

private void InitializeToolTipInfo()
{
	// Get the ToolTipInfo for TextBox1
	UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);
				
	// Apply an image
	toolTipInfo.ToolTipImage = ToolTipImage.Custom;
	toolTipInfo.Appearance.Image = Bitmap.FromFile(@"C:\Images\ToolTipImage.bmp");			
			
	// Normally, a tooltip will not display unless the ToolTipText has been set. 
	// However, you can force a tooltip to display without text by
	// explicitly setting Enabled to True. 
	toolTipInfo.Enabled = DefaultableBoolean.True;
}
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