I am trying to show a balloon tip every hour that my form is minimized to the tray. I allready have the minimize part done but how do I set the timer once it is down and then show the message every hour. I have some code I pulled from MSDN but I am not sure how to apply it to my situation. Also I have the timer set to 10 seconds here so that I can see the balloon tip for testing.
Also will this timer have a noticable effect on performance?vb Code:
Private Sub SetTimer() Dim aTimer As New System.Timers.Timer() AddHandler aTimer.Elapsed, AddressOf OnTimedEvent aTimer.Interval = 10000 aTimer.Enabled = True GC.KeepAlive(aTimer) End Sub Private Sub OnTimedEvent(ByVal source As Object, ByVal e As ElapsedEventArgs) ShowCSABaloon() End Sub




Reply With Quote