Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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!
VB
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
Posted

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...
 
Share this answer
 
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!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900