AFAIK, there is no way to do this directly. However, if you use the
process class to get the WindowHandle from the current process, and
Win32 ShowWindow command (through interop), you should be able to do it
with a  few lines of code.

This is off the top of my head; I don't have VS.NET installed right now
to test it out.

Chris

-----Original Message-----
From: Boyd Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 14, 2002 10: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