Skip to content

Commit f27be8c

Browse files
Copilotgewarren
andcommitted
Update ToolTip.AutoPopDelay documentation for platform-specific behavior
Co-authored-by: gewarren <[email protected]>
1 parent 2905808 commit f27be8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xml/System.Windows.Forms/ToolTip.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,12 @@
329329
330330
If you want to have a consistent delay pattern for your ToolTip windows, you can set the <xref:System.Windows.Forms.ToolTip.AutomaticDelay%2A> property. The <xref:System.Windows.Forms.ToolTip.AutomaticDelay%2A> property sets the <xref:System.Windows.Forms.ToolTip.AutoPopDelay%2A>, <xref:System.Windows.Forms.ToolTip.ReshowDelay%2A>, and <xref:System.Windows.Forms.ToolTip.InitialDelay%2A> properties to initial values based on a single value. Every time the <xref:System.Windows.Forms.ToolTip.AutomaticDelay%2A> property is set, the <xref:System.Windows.Forms.ToolTip.AutoPopDelay%2A> property is set to 10 times the <xref:System.Windows.Forms.ToolTip.AutomaticDelay%2A> property value. Once the <xref:System.Windows.Forms.ToolTip.AutomaticDelay%2A> property is set, you can independently set the <xref:System.Windows.Forms.ToolTip.AutoPopDelay%2A> property, overriding the default value.
331331
332-
The maximum time you can delay a popup is 5000 milliseconds. For longer durations, use the <xref:System.Windows.Forms.ToolTip.Show%2A> method to control the exact moment when the ToolTip is displayed.
332+
The behavior of this property varies by Windows version:
333+
334+
- On Windows 10, the maximum time you can delay a popup is 5000 milliseconds. Values greater than 5000 ms are clamped to 5000 ms.
335+
- On Windows 11, the default value causes tooltips to remain visible indefinitely. When set to a custom value, there's no 5000 ms limit, and the tooltip displays for the specified duration.
336+
337+
For longer durations or precise control over when the ToolTip is displayed, use the <xref:System.Windows.Forms.ToolTip.Show%2A> method.
333338
334339
335340

0 commit comments

Comments
 (0)