BubbaBeans 0 Report post Posted April 21, 2009 (edited) I asked a question earlier concerning creating an alarm in vb6. I converted it over to vb2008 and it is MUCH NICER! Everything minimizes to an icon in the system tray, and sits there using a timer to check for an alarm a couple times a minute. When an alarm is triggered, a balloontip pops up with information in it, and the program takes a public boolean variable, ActiveAlarm, and set is to true. As long as ActiveAlarm is true, the program won't change the information in the balloontip, even if another alarm event occurs.So here's my question: How can I get the program to recognize when the balloontip is closed? Once it is, I will simply have the program set ActiveAlarm to false, and the notifications return to normal. But I can't quite figure out how to recognize the status of the balloontip. Edited April 21, 2009 by BubbaBeans (see edit history) Share this post Link to post Share on other sites
BubbaBeans 0 Report post Posted April 24, 2009 I asked a question earlier concerning creating an alarm in vb6. I converted it over to vb2008 and it is MUCH NICER! Everything minimizes to an icon in the system tray, and sits there using a timer to check for an alarm a couple times a minute. When an alarm is triggered, a balloontip pops up with information in it, and the program takes a public boolean variable, ActiveAlarm, and set is to true. As long as ActiveAlarm is true, the program won't change the information in the balloontip, even if another alarm event occurs. So here's my question: How can I get the program to recognize when the balloontip is closed? Once it is, I will simply have the program set ActiveAlarm to false, and the notifications return to normal. But I can't quite figure out how to recognize the status of the balloontip. Well, it wasn't as difficult as I thought! After doing just a LITTLE digging, the answer presented itself. This code is placed with the form that has the notifyicon (NotifyIcon1) attached PublicSub BalloonClosed(ByVal sender AsObject, ByVal e As System.EventArgs) Handles NotifyIcon1.BalloonTipClosed ****** Code you want to execute when the balloontip is closed, either by using the close button, or it times out ****** Note: You can test to see HOW the balloontip was closed EndSub That's it Share this post Link to post Share on other sites