如何同时显示一个balloonTip [英] How to show one balloonTip at the same time

查看:158
本文介绍了如何同时显示一个balloonTip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此示例中,气球将同时显示多个气球。是否有任何方法可以控制气球在一个气球显示期间不显示。谢谢!

 公共  Sub  errTipsForTextBox( ByVal  cclToCheck  As  System.Windows.Forms.Control, ByVal  errTips 作为 字符串
Dim errBallonnTip 作为 BalloonTip
errBallonnTip.Style = eBallonStyle.Office2007Alert
errBallonnTip.SetBalloonText(cclTocheck,errTips)
errBallonnTip.AutoCloseTimeOut = 1000
errBallonnTip.ShowBalloon(cclToCheck)
结束 <温泉n class =code-keyword> Sub

解决方案

不知道VB.net或BalloonTip,但不应该'你在全球的地方有errBalloontip变量并使用一个名为visible的可能存在的成员来检查它是否可见?



那么它应该是up给你决定如何处理未显示的消息列表(丢弃它们,将它们放在一个列表中并一个接一个地显示它们......)。



只是在这里猜测...


我找到了解决方案!

将一个balloontip控件拖到表单上,重命名它。然后我们就可以在我们需要的时间。因为表格中有一个balloontip控件,所以同时控件中只会有一个balloontip。



谢谢Joan Murt!

In This example,the balloon will show more than once at the same time.Is there any method to control the balloon not to show during one balloon is showing.Thank you!

Public Sub errTipsForTextBox(ByVal cclToCheck As System.Windows.Forms.Control, ByVal errTips As String)
        Dim errBallonnTip As New BalloonTip
        errBallonnTip.Style = eBallonStyle.Office2007Alert
        errBallonnTip.SetBalloonText(cclTocheck, errTips)
        errBallonnTip.AutoCloseTimeOut = 1000
        errBallonnTip.ShowBalloon(cclToCheck)
    End Sub

解决方案

No idea about VB.net or BalloonTip, but shouldn't you have the errBalloontip variable in a global place and use a possibly existent member named "visible" to check if it is visible or not?

Then it should be up to you to decide what to do with the list of not shown messages (discard them, put them in a list and show them one after the other...).

Just guessing here...


I find the solution!
Drag a balloontip control to the form,rename it.and then we can display it at the time we need.Owing to there is one balloontip control in the form,so there will be only one balloontip in the control at the same time.

Thanks Joan Murt!


这篇关于如何同时显示一个balloonTip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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