问题描述
我一直在努力没有运气改变这种状况出现窗体的主标题栏上的按钮工具提示文本。
I have been trying without luck to change the text of the tooltip that appears for the buttons on the main title bar of a form.
在简单地说,我们已经开始利用帮助按钮,Windows窗体有一些其他目的。这是工作的罚款。问题是,在该按钮将鼠标时,会出现一个帮助提示,不使应用程序任何意义。
In a nutshell, we have harnessed the 'Help' button for Windows Forms to have some other purpose. This is working fine. The issue is that when hovering the mouse over that button, a 'Help' tooltip appears, which doesn't make any sense for the application.
在理想情况下,会有一些方法来改变工具提示文本为我的申请;然而,在这一点上,我会满足于只找到一种方法来完全禁用工具提示。
Ideally, there would be some way to change the text of that tooltip for my application; however, at this point I would be satisfied just finding a way to disable the tooltips altogether.
我知道,你可以通过修改用户preferencesMask注册表编辑器中的关键禁用整个操作系统的提示,但我真的想办法让这只会影响我的申请。
I know that you can disable the tooltips for the entire OS by modifying the 'UserPreferencesMask' key in regedit, but I would really like a way to have this only affect my application.
再次理想会有某种方式与管理code要做到这一点,但我不会反对连接到Windows API等。
Again, ideally there would be some way to do this with managed code, but I would not be opposed to linking into the Windows API or the like.
感谢为解决此问题的任何建议!
Thanks for any suggestions for resolving this issue!
推荐答案
作为一种变通方法,您可能无法使用帮助按钮,而是:添加自定义按钮
As a workaround, you may not use the help button, instead: add your custom button.
不是那么完美,但它表明你这个想法。
Although this sample not so perfect, but it shows you the idea.
这篇关于标题栏按钮覆盖提示文本(关闭,最大化,最小化,帮助)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!