如何在VB.Net中显示鼠标输入事件中任何控件的标题? [英] How To Show The Caption For Any Control In VB.Net On Mouse Enter Event?

查看:168
本文介绍了如何在VB.Net中显示鼠标输入事件中任何控件的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友想在鼠标进入事件时显示按钮控件的标题...例如当您将鼠标置于按钮上方或鼠标进入按钮控件时,它将显示按钮控件执行的功能.一种弹出式方式..我认为它非常普遍...

看来这很简单,但是在google:P上找不到它.就像HTML链接中的标题控件一样.




Hello friends want to show the caption of a button control on mouse enter event... like when u will take mose over the button or mouse will enter on the button control, it will show what function button control perform.. in a pop up kind way.. its very common in use i think...

seems its very simple thing , but didnt find it on google :P .. its just like caption control in HTML link ....




thanks.

推荐答案

大多数控件都具有TootlTip属性.
向此属性添加文本.现在,将鼠标悬停在控件上时,它将显示该文本.

已添加-
如果是Windows应用程序,请从表单上的工具箱中添加工具提示.该属性将可用于表单上的控件.
Most of the controls have TootlTip property.
Add a text to this property. Now when you hover your mouse over the control, it will show that text.

Added--
And if it''s a Windows application, add a ToolTip from the toolbox on the form. And the property will be available for the controls on the form.


您好,
从工具箱中拖放ToolTip控件
现在
选择button属性,然后在toolTip1上选择ToolTip并正确编写您要完成的操作,运行该应用程序并查看魔术

谢谢与问候
基数:rose:
Hello,
Drag and drop ToolTip control from the toolbox
Now
select the button property and select ToolTip on toolTip1 and write what u wana right and you are done, run the application and see the magic

Thanks & Regards
Radix :rose:


^^
您好,谢谢哥们,它有效:) like




ToolTip1.SetToolTip =(您的控件,控件的提示")




:)
^^
Hello thanks buddy , it works :) like




ToolTip1.SetToolTip=(Your Control,"Your Tip for the control")




:)


这篇关于如何在VB.Net中显示鼠标输入事件中任何控件的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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