Tooltip Balloon Disappears After 5 Seconds

岁酱吖の 提交于 2019-12-22 07:03:42

问题


I have the property "AutoPopDelay" set to 60000, but every time I hover over an associated element, the balloon only stays open for 5 seconds even when my mouse pointer stays over stationary over the element.

Any ideas on what could be causing this?

Edit: I am using WinForms


回答1:


Reading the documentation for the AutoPopDelay on MSDN (link) the maximum time you can delay a popup is 5000 milliseconds.

If you want a longer duration, use the Show method to control the exact moment when the ToolTip is displayed.

...

However, I believe that you are trying to cure the symptoms and not the cause of your problem if you need a ToolTip to stay open for that long. A tool tip is, by definition, is "a small box with contextual information about the item the user to pointing to". If the user is unable to read what the tooltip is trying to suggest in 5 seconds, then it is not really a "tip" but an entire chapter from the help file.




回答2:


Playing around with the tool tip control a bit it seems you can set AutoPopDelay to anything up to 32767 anything above that and it will default back down to 5000. My guess is in the background a short is being used rather then a int.



来源:https://stackoverflow.com/questions/3906531/tooltip-balloon-disappears-after-5-seconds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!