Hi, Jason
you might want to check
ms-help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpconbuildingconsoleapplicat
ions.htm in Framework Help, or look for Console class.
Alternatively you can use Win32 API, like GetConsoleWindow() to attach
system console.
Platform SDK has also wealth of information on what is possible.
What exactly you want to achieve?
If you want just to open console window - compile application as console
application.
HTH
Alex
"Jason Callas" <Ja*******@hotmail.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
I am trying to figure out how to create a console window but cannot figure
out how to do this. I know it can be done since the C# and VB console
template projects do this but I see no code on how this is done.
The only thing I can think of is that there is hidden code to spawn
cmd.exe? Then they somehow direct console.read and console.write calls to the
spawned process.
Any thoughts (and some sample code) would be greatly appreciated.
- Jason