带“关闭"按钮的Baloon工具提示 [英] Baloon Tooltip with Close button

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

问题描述



1.我在应用程序中显示了多个气球工具提示
一个.我只需要关闭选定的气球工具提示



b.我需要带关闭按钮的气球工具提示而不使用API​​

Hi

1. I am showing more than one balloon tooltip in my application
a. I need to close a selected balloon tooltip only

or

b. I need balloon tooltip with close button without using API

推荐答案

请查看我对您在此处遇到的相同问题的回答:[
因此,恕我直言,您正在这里寻求一种不允许使用WinForms ToolTip Control的解决方案,但将要求您创建自己的特殊Form或UserControl类,并实例化它的多个副本,以实现所有必要的逻辑(包括您需要使用的计时器?).
Please see my response to what appears to be the same question you have here:[^].

But, the idea of having more than one ToolTip open at a time really means you are no longer really using the "classic" model of a what the WinForms ToolTip "is:" which is one, and one-only, instance open at a time ... no matter how many ToolTip controls you put on your Form, no matter you set the ''ShowAlways property to ''true.

So, imho, you are asking for a solution here that does not allow using the WinForms ToolTip Control, but will require you to create your own special Form, or UserControl, class, and instantiate multiple copies of it, implementing all the logic necessary (including use of Timers ?) that you require.


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

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