How to set Reshow Delay for ToolTip in C#?

In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it provides a brief description about the control present in the windows form. In ToolTip, you can set the length of the time that must transpire before subsequent ToolTip windows appear as the pointer or cursor moves from one control to another control using ReshowDelay Property. With the help of this property, you can increase and decrease the time that the ToolTip waits before appearing after previous control. You can set this property in two different ways:

1. Design-Time: It is the easiest way to set the value of the ReshowDelay property as shown in the following steps:

  • Step 1: Create a windows form as shown in the below image:
    Visual Studio -> File -> New -> Project -> WindowsFormApp
  • Step 2: Drag the ToolTip from the ToolBox and drop it on the form. When you drag and drop this ToolTip on the form it will automatically add to the properties(named as ToolTip on ToolTip1) of every controls present in the current windows from.
  • Step 3: After drag and drop you will go to the properties of the ToolTip and set the value of the ReshowDelay property.


2. Run-Time: It is a little bit trickier than the above method. In this method, you can set the ReshowDelay property of ToolTip programmatically with the help of given syntax:

public int ReshowDelay { get; set; }

Here, the value of this property is of System.Int32 type and the delay is always in milliseconds. The following steps show how to set the ReshowDelay property of the ToolTip dynamically: