Is there way(s) to affact console window's properties.

L

Lau Lei Cheong

Hello,

I'm writing console (i.e.: text mode) application using C# to perform
some lightweight jobs that requires little human interaction (e.g.
automating some Office applications with macro-like functions, except that I
have to perform some other jobs regarding to the state/content of that
Office application).

When the application runs, it'll dump the running log to screen for the
user to see, explaining what task the program is doing, and what is the
result, any warnings and any user action is required. The console it runs
will scroll when the output fill the screen and starts to drop display data
when too much output is generated.

So the users enquires whether my program will configure more screen
buffer for them. I have little idea for where to start off - whether I can
interact with the parent application except using exit code, whether double
click on console application will spawn a new cmd.exe shell to run or the
console application itself owns the console window, etc.

Can someone give me a pointer to where I should begin?

Regards,
Lau Lei Cheong
 
C

CT

This might not be what you're after, but in the .NET Framework 2.0, there
are numerous properties on the Console object that you can set.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top