如何在C#中的特定标签上创建工具提示点? [英] How do I make a tooltip point at a specific label in C#?
本文介绍了如何在C#中的特定标签上创建工具提示点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我想使用工具提示指向标签以引起用户注意:
In my application I want to use a tooltip to point at a label to get the users attention:
toolTip.IsBalloon = true;
toolTip.Show("message", label1);
问题是气球没有指向指定的标签. 我该怎么办?
The problem is that the balloon isn't pointing at the specified label. What should I do?
推荐答案
这是一个已知的错误.
尝试两次调用它以解决黑客问题:
Try calling it twice for a hack work-around:
toolTip.Show(string.Empty, label1, 0);
toolTip.Show("message", label1);
这篇关于如何在C#中的特定标签上创建工具提示点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文