ToolTipsFactory

Object Model - Common Properties - AutoPopDelay

Gets or sets a value which defines the time in milliseconds the tooltip will remain visible.

[Visual Basic]
Public Property AutoPopDelay As Integer
[C#]
public int AutoPopDelay {get; set;}

Property Value

Any Integer value greater then 0

Overridable

Layout-file

Description

This property defines how long the tooltip will stay visible when it pops-up over a control. The value is specified in milliseconds. For tooltips which show only short strings, values ranging from 5 to 10 seconds (5'000 to 10'000 milliseconds) are a good choice. For more complex tooltip content, such as several lines of text, images or animations, it is up to the application developer to specify adequate values. If specified at the component-level for a tooltip component (i.e. by assigning the value directly to the component), the value will become the default AutoPopDelay for the tooltips of all controls on the same form. This default AutoPopDelay can be overridden for each control through the Override-property provided to all controls on the same form by the tooltip component (see "The Override-Property").

Examples

This statement defines a default AutoPopDelay for all controls on the same form as the tooltip component:

'set the default AutoPopDelay to 5 seconds

Me.TTFMultiLine1.AutoPopDelay = 5000 

How to override the default AutoPopDelay (or any other overridable property) through the various designers and editors in Visual Studio is extensively discussed in "The Override-Property". If the override-value for the AutoPopDelay has to be set or changed at runtime for the tooltip of a specific control, the following code is needed:

'This lets pop-up the MultiLineToolTip for 12 seconds when

'the mouse pointer is moving over the control Panel1.

Me.TTFMultiLine1.GetMultiLineToolTip(Panel1).Override.TimingOverride.AutoPopDelay = 12000