工具条文本框上的工具提示 [英] tooltip on toolstriptextbox
本文介绍了工具条文本框上的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我有toolstriptextbox,我想在其上应用工具提示.请尝试以下代码
Hi Friends,
I have toolstriptextbox, I want to apply a tool tip on it.trying following code
<br />
foreach (object c in listofControls)<br />
toolTip1.SetToolTip((ToolStripTextBox)c, "abc"));<br />
请指导我如何在此类控件上应用工具提示.
问候
please guide me How I can apply tooltip on this type of control.
Regards
推荐答案
我认为您打算这样做:
I think you meant to do this:
foreach (object control in this.Controls)
{
if (control is ToolStripTextBox)
{
toolTip1.SetToolTip((ToolStripTextBox)control, "abc");
}
}
这篇关于工具条文本框上的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文