带有解释的图片框c# [英] picturebox with explanation c#

查看:87
本文介绍了带有解释的图片框c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图片框c#

我想显示一个字符串(消息)当我将鼠标移到图片上但没有点击

我怎么能这样做?

I have a picturebox in form c#
and i want to show a string(message) when i move the mouse over the picture but without clicking
how can I do this?

推荐答案

处理 PictureBox.MouseHover [ ^ ]事件(请参阅文档页面上的代码示例)。
Handle the PictureBox.MouseHover[^] event (see the code sample at documentation page).


您好b $ b

试试这个



在windowsform上从工具箱中添加一个图片框控件和工具提示控件。



设置tooltip1属性在图片框属性中输入您的字符串(消息),并在您悬停在图像框上时运行它会显示您的消息。



如果您需要详细说明,请按照以下链接



http://www.dotnetperls.com/tooltip [ ^ ]
Hi
Try this

Add a picturebox control and tooltip control from toolbox on windowsform.

Set the tooltip1 property in picturebox properties and enter your string(message),and run when ever you hover on your image box it will appear you message.

If you want detailed explanation then follow the below link

http://www.dotnetperls.com/tooltip[^]


这篇关于带有解释的图片框c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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