|
-
Aug 10th, 2010, 12:42 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] minimizing form to system tray...
Hello guys. I'm back to the forum after a long time. Anyway, got a problem to be solved.
I want my form to be minimized in to system tray with icon that i specify. I googled it found the use of resource file. I didn't get it. How to use resource file? And as a ultimate goal, how do I minimize my form when minimized?
Thanks...
-
Aug 10th, 2010, 12:44 PM
#2
Re: minimizing form to system tray...
Search the CodeBank section for: system tray. There is a project in there that is really straightforward.
By the way, you don't actually minimize your form when it goes to the system tray, you either hide it or move it far off the screen.
-
Aug 10th, 2010, 05:27 PM
#3
Re: minimizing form to system tray...
-
Aug 10th, 2010, 08:22 PM
#4
Re: minimizing form to system tray...
 Originally Posted by LaVolpe
Search the CodeBank section for: system tray. There is a project in there that is really straightforward.
By the way, you don't actually minimize your form when it goes to the system tray, you either hide it or move it far off the screen.
Well you can't just move the window off the screen because the app can still get focus and the user could be changing things in the app without even knowing it, plus if you use the show in taskbar option the app would still be in the task bar making the tray icon sort of pointless wouldn't it?
I just set up all my tray apps so they hide when they detect they are minimized in the forms resize event.
-
Aug 10th, 2010, 09:57 PM
#5
Re: minimizing form to system tray...
Another helpful thing to know is that the official name for this is the "Notification Area" rather than the "System Tray." This is most helpful when you want to search authoritative documentation such as the MSDN Library.
Microsoft seems to be a little schizophrenic about this themselves, sometimes using "tray" to mean the whole Taskbar, sometimes to mean the Notification Area. So its no wonder that Mort and the tinkerer community get confused.
-
Aug 11th, 2010, 09:46 AM
#6
Thread Starter
Hyperactive Member
Re: minimizing form to system tray...
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
|