Minimize Your Application To The Tray - VB#21 ~ VBTheory™ Tutorials

Monday, July 2, 2012

Minimize Your Application To The Tray - VB#21



Code:
Resize Event:
If WindowState = FormWindowState.Minimized Then
    NotifyIcon1.Visible = True
    Me.Hide()
    NotifyIcon1.ShowBalloonTip(5000)
End If

Notifyicon double click event:
  Me.Show()
  NotifyIcon1.Visible = False

Exit context strip click event:
  NotifyIcon1.Visible = False
  End
        
Closing event:
  NotifyIcon1.Visible = False
  End
        
Show context menu strip click:
  Me.Show()
  NotifyIcon1.Visible = False



Share