If you're doing something like this, I think it's cool to put it in the
System Tray. If you create your app as a Windows Application, you can
set it up so it starts minimized, and/or use the NotifyIcon class to get
an icon in the system tray. 

If you want it only in the system tray, Windows Forms lets you set a
property that keeps it out of the taskbar. If you want to keep it out of
the Alt-Tab list, you have to do it with Windows messages. I have an
example that I haven't written up yet; let me know if you would like a
snippet to do that. 

-----Original Message-----
From: Boyd Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 14, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Auto-Minimizing Console Apps


Hey all,

Is there a way in code (C#) for me to specify that my console applet run
minimized? I've written a simple app that will complete an unattended
process to be scheduled via the Windows Scheduler. The Console class is
simple and doesn't appear to expose any member that would handle this.
I'm aware that I could simply create a shortcut to my EXE and specify
that it run minimized, but my curiosity has gotten the best of me now. I
need to know whether code will handle it or I won't sleep well! Thanx in
advance for any responses!

Boydski

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to