This documentation is archived and is not being maintained.

Changing the Delay of the Windows Forms ToolTip Component

Visual Studio .NET 2003

There are multiple delay values that you can set for a Windows Forms ToolTip component. The unit of measure for all these properties is milliseconds. The InitialDelay property determines how long the user must point at the associated control for the ToolTip string to appear. The ReshowDelay property sets the number of milliseconds it takes for subsequent ToolTip strings to appear as the mouse moves from one ToolTip-associated control to another. The AutoPopDelay property determines the length of time the ToolTip string is shown. You can set these values individually, or by setting the value of the AutomaticDelay property; the other delay properties are set based on the value assigned to the AutomaticDelay property. For example, when AutomaticDelay is set to a value N, InitialDelay is set to N, ReshowDelay is set to the value of AutomaticDelay divided by five (or N/5), and AutoPopDelay is set to a value that is five times the value of the AutomaticDelay property (or 5N).

To set the delay

  • Set the following properties as shown in this example.
    ' Visual Basic
    ToolTip1.InitialDelay = 500
    ToolTip1.ReshowDelay = 100
    ToolTip1.AutoPopDelay = 5000
    // C#
    ToolTip1.InitialDelay = 500;
    ToolTip1.ReshowDelay = 100;
    ToolTip1.AutoPopDelay = 5000;
    // C++
    toolTip1->InitialDelay = 500;
    toolTip1->ReshowDelay = 100;
    toolTip1->AutoPopDelay = 5000;

See Also

Introduction to the Windows Forms ToolTip Component | Setting ToolTips for Controls on a Windows Form | ToolTip Component (Windows Forms)