Tooltip Balloon Disappears After 5 Seconds

时间秒杀一切 提交于 2019-12-05 09:23:48

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.

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.

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