简体   繁体   中英

ToolTip is Taking Too Long To Hide

In that form, I am showing a tooltip when the mouse hovers over a button. The tooltip displays until the mouse leaves the button.

The issue is, that when the mouse leaves the button, the tooltip fade time is a little to long. How do I change the tool tip's hide time.

I hide the tooltip via the Hide() function:

toolTip.Hide();

You can adjust the tooltip's AutoPopDelay property to suit your needs.

You can read more about it here (with an example): https://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.autopopdelay(v=vs.110).aspx

Change the value of AutoPopDelay property.

EDIT: The value is in milliseconds

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM