|
-
May 19th, 2009, 09:44 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Notifyicon
I want to make that when you minimize the program, it will be removed from the taskbar, and only be visible as a notifyicon in the right site of the taskbar.
And when you push the notifyicon it will open the program, and come back in the taskbar??
How do i do this?? =)
-
May 19th, 2009, 11:40 AM
#2
Junior Member
Re: Notifyicon
vbnet Code:
Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick Me.Visible = True NotifyIcon1.Visible = False Me.WindowState = FormWindowState.Normal End Sub Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize If Me.WindowState = FormWindowState.Minimized And cbxMinimize.Checked Then NotifyIcon1.Visible = True Me.Visible = False End If End Sub
Last edited by AereoN; May 20th, 2009 at 05:26 AM.
-
May 20th, 2009, 05:22 AM
#3
Thread Starter
Addicted Member
Re: Notifyicon
Code:
Private Sub btnLogin_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.SizeChanged
It says that btnLogin.SizeChanged is an error??
Anyway, thanks !!
-
May 20th, 2009, 05:27 AM
#4
Junior Member
Re: Notifyicon
Ops..
Copied the wrong code from my project xD
Updated the previous post with the correct code.
-
May 20th, 2009, 05:42 AM
#5
Thread Starter
Addicted Member
Re: Notifyicon
cbxMinimize is an error too??
-
May 20th, 2009, 05:44 AM
#6
Junior Member
Re: Notifyicon
 Originally Posted by Eldrup
cbxMinimize is an error too??
You can remove that if you want.
I made a checkbox for the user to select if he wants the application to minimize to tray or not.
If true = minimize to tray.
-
May 20th, 2009, 05:54 AM
#7
Thread Starter
Addicted Member
Re: Notifyicon
Thank you so much :')
It helped !
-
May 20th, 2009, 06:44 AM
#8
Thread Starter
Addicted Member
Notifyicon
Well...When you rightclick the notifyicon, there should come some text.
Etc. About, Exit .. How do i make this? (Allmost every notifyicon has this)...
-
May 20th, 2009, 09:56 AM
#9
Thread Starter
Addicted Member
-
May 20th, 2009, 09:59 AM
#10
Re: Notifyicon
Add a ContextMenuStrip to your form and assign it to the ContextMenuStrip property of the NotifyIcon.
-
May 20th, 2009, 10:29 AM
#11
Thread Starter
Addicted Member
Tags for this Thread
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
|