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.
Printable View
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.
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
All those showing in windows application... but i'm doing in console application... please help!!Quote:
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?Quote:
Originally Posted by Krishnaa