我可以设置无限AutoPopDelay在一个.NET Windows窗体窗口提示? [英] Can I set an infinite AutoPopDelay for a tooltip in a .NET Windows Forms window?

查看:428
本文介绍了我可以设置无限AutoPopDelay在一个.NET Windows窗体窗口提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,没有标准的.NET Windows窗体提示automatcially隐藏 - 这是的,我需要他们保持可见,直到鼠标移开具有提示控制。我想,以避免使用特定的MouseEnter和鼠标离开事件的所有控件与工具提示。我很高兴听到第三方的解决方案,如果他们想解决的问题。

解决方案

我正在寻找一个解决问题的办法。

  
      
  1. 在弹出气球消失得太快,不能让我看它的内容
  2.   
  3. 在弹出气球不会再徘徊到该区域时出现。
  4.   

我发现在论坛下面的答案,这并不解决Problem2,但让我读的文字比我更需要,当我将其值设置为时间 32766 并因此 - 中我的观点 - 一种变通:

  

其实,我发现我的问题是,我分配一个值大于32767(32768及以上将有5秒的效果)真   奇怪的,因为AutoPopDelay应该采取一个整数(32位)作为   参数,32767确实是一个有符号的16位...

但我不得不承认,它仍然很烂......

但它设置为 32000 (32秒),似乎更好地工作。不知道这是为什么,但也许它可以帮助别人。

I have a requirement to not have the standard .NET Windows Forms tooltip automatcially hide - that is, I need them to remain visible until the mouse moves off the control that has the tooltip. I'd like to avoid having to use specific MouseEnter and MouseLeave events for all controls with a tooltip. I'm happy to hear about third-party solutions if they'd solve the problem.

解决方案

I was searching for a solution to the problem

  1. The popup baloon disappears too fast, not allowing me to read its content
  2. The popup baloon does not appear again when hovering into that region.

I found in the forums the following answer, which does not solve Problem2, but lets me read the text for more than the time I need when I set its value to 32766 and is thus - in my opinion - a kind of 'work around':

Actually, I found out my problem was that I assigned a value higher than 32767 (32768 and higher will have an effect of 5 sec) really weird, since AutoPopDelay is supposed to take an Integer (32 bit) as parameter, and 32767 is really a signed 16 bit ...

But I have to admit, it still sucks...

But setting it to 32000 (32 seconds) seems to work better. No clue why this is but maybe it helps someone.

这篇关于我可以设置无限AutoPopDelay在一个.NET Windows窗体窗口提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆