|
-
March 7th, 2008, 04:31 AM
#1
Minimize console app to System Tray
When running a console application... is there any func that allow when minimized the exe... it will minimize to System Tray instead of task bar.
-
March 7th, 2008, 06:49 AM
#2
Re: Minimize console app to System Tray
You can use NotifyIcon class to show/hide icon in system tray, when minimizing to system tray you just have to hide the application window and show when system tray menu item is hit.
http://www.ddj.com/windows/184416688
http://msdn2.microsoft.com/en-us/lib...50(VS.71).aspx
http://www.codeproject.com/KB/cs/mintraybtn.aspx
Last edited by Krishnaa; March 7th, 2008 at 06:53 AM.
Regards,
Ramkrishna Pawar
-
March 7th, 2008, 10:57 PM
#3
Re: Minimize console app to System Tray
 Originally Posted by Krishnaa
All those showing in windows application... but i'm doing in console application... please help!!
-
March 10th, 2008, 07:55 AM
#4
Re: Minimize console app to System Tray
The only difference in console and windows form is the window type, so I am assuming that your current and remaining problem is 'how to hide the console' while setting it to tray icon, correct ?
You will have to go Win32 way here, using FindWindow (you know console caption) & ShowWindow API, you can use PInvoke to call Win32 API.
Regards,
Ramkrishna Pawar
-
March 11th, 2008, 10:55 PM
#5
Re: Minimize console app to System Tray
 Originally Posted by Krishnaa
The only difference in console and windows form is the window type, so I am assuming that your current and remaining problem is 'how to hide the console' while setting it to tray icon, correct ?
You will have to go Win32 way here, using FindWindow (you know console caption) & ShowWindow API, you can use PInvoke to call Win32 API.
Can you provide some sample?
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
|