显示带有按钮/图像的工具提示 [英] display a ToolTip with a button/image

查看:76
本文介绍了显示带有按钮/图像的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个任务,其中我必须显示带有按钮/图像和文本的工具提示,如果用户单击工具提示的按钮/图像,则它应该展开并显示带有链接的附加说明.单击链接应在新窗口中打开URL.

那我该怎么办呢?最好的方法是什么?
在此先感谢

i have a task, in which i have to display a ToolTip with a button/image and text, if the user clicks on the tooltip''s button/image it should expand and show addition description with links. clicking on the link should open the URL in new window.

so how can i do it? Whats the best way?
Thanks in advance

推荐答案

听起来您正在谈论的是可折叠面板,其中包含内容.内容中包含超链接,单击该链接将在新的浏览器窗口中打开.

此外,在我看来,您正在谈论Web应用程序,即使您尚未对其进行标记.
如果是ASP.NET,请参见以下内容:
CollapsiblePanel演示 [ ASP.NET可折叠可拖动面板服务器控件 [ ^ ]
ASP.NET 2.0手风琴服务器控件 [ ^ ]
可重复使用的Web可折叠面板 [ JavaScript可扩展/可折叠面板控件 [
It sounds like you are talking of collapsible panels that has content in it. Content has hyperlinks in it, on click of which will open up in a new browser window.

Further, it sounds to me you are talking of web application even though you have not tagged so.
If ASP.NET, see following:
CollapsiblePanel Demonstration[^]
ASP.NET Collapsible Draggable Panel Server Control[^]
An ASP.NET 2.0 Accordion Server Control[^]
Reusable Collapsible Panel for Web[^]
JavaScript Expandable / Collapsible Panel Control[^]

If windows, it would be similar logic where you have a panel defined that will be visible or hidden based on the selection.


拖动窗体上的工具提示"控件

现在处于按钮的"mouse_enter"事件
drag ''tooltip'' control on your form

now on button''s "mouse_enter" event
ToolTip1.ToolTipIcon = ToolTipIcon.Info
ToolTip1.BackColor = Color.Khaki
ToolTip1.ForeColor = Color.DarkKhaki
ToolTip1.SetToolTip(button1, "Click me to save data.")



祝您编码愉快!
:)



Happy Coding!
:)


这篇关于显示带有按钮/图像的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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