[Tutorial]Minimize To Tray
Hello Guy|Gals,
This tutorial is to tell you how to minimize to tray. You can be using it for almost anything and i cant care less so lets start.
ok now we have out Notify Icon with mostly is a tray. We need now to add the icon to your tray and the text it will say.
Now it have a Face
Lets Add o if u Click it will re open your Form
Here Now you can Minimize to tray and Be able to show back your application be happy and enjoy.
This tutorial is to tell you how to minimize to tray. You can be using it for almost anything and i cant care less so lets start.
Code:
Private WithEvents ni As New NotifyIcon
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ni.Icon = Me.Icon()
ni.Text = "Your Text Go Here"
End Sub
Lets Add o if u Click it will re open your Form
Code:
Private Sub ni_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ni.DoubleClick
If Me.Visible = True Then
Me.Hide()
Else
Me.Show()
End If
End Sub



