ToolTipsFactory

Object Model - Common Properties - KeepAlive

Gets or sets a value which defines whether the tooltip should remain visible as long as the mouse is moving over the control or if it should be hidden as soon as the period defined in AutoPopDelay is over.

[Visual Basic]
Public Property KeepAlive As Boolean
[C#]
public bool KeepAlive {get; set;}

Property Value

A boolean value. The default-value is False.

Overridable

Layout-file

Description

KeepAlive is a boolean flag to define whether the tooltip should remain visible as long as the mouse is moving over the control (True) or if it should be hidden as soon as the period defined in AutoPopDelay is over (False).

This property is not available at the component-level! It appears only as a property of the object provided to the controls on the same form (see the reference sections about the different <ToolTipType>TTDataSource-objects) as shown below for the AnimationToolTip (see also the section on "Provided properties"):

This property is not available as a property at the component-level because this is not something that should be set as a default-value for the tooltips of all controls on the same form. Usually, KeepAlive=True makes only sense for controls, where the tooltip should stay visible as long as the mouse is moving around on the client-area of the control. For instance, this could be the case for a PictureBox, where the tooltip is used to continuously display information about the pixel(s) the mouse is currently pointing to. (How to make use of the dynamic capabilities of the tooltip-components, like changing tooltip-content while the pointer is moving, is described in the "Task-based tutorials".)

This property is only available as a property of the object provided as extended property to a control. It can be accessed through code as shown below:

'Keep the tooltip alive as long as the mouse is moving over Panel1...

Me.MultiLine.GetMultiLineToolTip(Panel1).KeepAlive = True