Hi !
Does anyone know how i can place my application (VB) in the icon tray ?
Printable View
Hi !
Does anyone know how i can place my application (VB) in the icon tray ?
Use the NotifyIcon control in the toolbox.
something like this:
Sub Showintray()
' Hide the form
Me.Hide()
' set properties for the icon
NotifyIcon1.Icon = New System.Drawing.Icon("balbal.ico") ' icon file name, u can set it in design time too
NotifyIcon1.Text = "balbalbal"
NotifyIcon1.Visible = True
End Sub
Public Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick
' Make icon invisible & show form
NotifyIcon1.Visible = False
Me.Show()
End Sub