|
-
Oct 21st, 2002, 06:08 PM
#1
Thread Starter
Lively Member
Icon Tray !
Hi !
Does anyone know how i can place my application (VB) in the icon tray ?
-
Oct 21st, 2002, 06:26 PM
#2
Use the NotifyIcon control in the toolbox.
-
Oct 21st, 2002, 06:37 PM
#3
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|