将图片/图像添加到工具提示-Windows窗体(Visual Basic 2010) [英] Adding Pictures/Images to a Tooltip - Windows Form (Visual Basic 2010)

查看:123
本文介绍了将图片/图像添加到工具提示-Windows窗体(Visual Basic 2010)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

经过数小时的研究之后,我决定在不同的论坛和其他论坛上提问.

当eksample鼠标悬停在按钮上时,如何简单地将图片添加到工具提示中,将显示例如一台电脑.我尝试了服务器方法,但似乎无法正常工作.

如果有任何人可以给我一个简单的代码,并解释为什么以及如何工作.如果它是更高级的内容,请随时发布并尝试,如果您可以向我解释它的工作原理:)

非常感谢!

Greetings,

Now after serveral hours of researching, asking on different forums and other i decided to ask here.

How to simply add a Picture to a tooltip when as for eksample mouse over a button it will show a picture of e.g. a Computer. I tried serveral methods but i just can''t seem to get it work right.

If there is anyone out there who can give me a simple code and a explanation to why and how it works. If its a more advanced thing, feel free to post it anyway and try, if you can explain me how it works :)

Thank you very much!

推荐答案

没有简单的方法可以执行此操作,因为默认的工具提示仅是文本.您必须创建一个自定义控件来处理此问题.
此CP文章可能是您的一个很好的起点:工具提示带有标题,多行内容和图像 [ ^ ]
There is no simple way to do this because default tooltips are text only. You''d have to create a custom control to handle this.
This CP article may be a good starting point for you: A ToolTip with Title, Multiline Contents, and Image[^]


这篇关于将图片/图像添加到工具提示-Windows窗体(Visual Basic 2010)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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