如何创建悬停消息? [英] How to create a hovering message?
本文介绍了如何创建悬停消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在文本框的悬停事件中创建一条消息,这样它就是一条小小的消息,里面写着一些东西.........不是消息框或其他类型.....我想要的是许多获胜应用中的徘徊信息........请帮助.........
提前致谢...... ....
问候,
Ahsan Naveed。
i want to create a message in the hover event of a textbox such that it is a small message that comes up with something written.........not a messagebox or some other type......what i want is a hovering message as comes in many win apps........please help.........
Thanks in advance..........
Regards,
Ahsan Naveed.
推荐答案
好的,问题解决了.....我终于找到了解决方案,我需要的是一个工具提示....就像这样....
Ok so problem is solved.....I finally found the solution myself what I needed was a tooltip....like this....
private void txt1_MouseHover(object sender, EventArgs e)
{
ToolTip name=new ToolTip();
name.SetToolTip(this.txt1,"Enter you DOB in the format used in your computer.");
}
等等没有问题.........得到我的答案.....
问候,
Ahsan Naveed。
and so no more problem.........got my answer.....
Regards,
Ahsan Naveed.
这篇关于如何创建悬停消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文