Tech Off Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

A Console In A Windows Application?

Back to Forum: Tech Off
  • User profile image

    Is it possible to have a console window build into a windows form? I know it sounds wierd, but i think it can be done. I would like to be able to execute any dos command from within my application.

  • User profile image

    The Process class allows you to redirect output to a stream you can read from your code. You might try something along the lines of the following:

  • User profile image

    I also cover how to do this in my book although taking a different approach using COM Interop (since the chapter I did it for was on that subject).  The code is freely downloadable at  Oh, the book is called "Microsoft Visual C# .NET 2003 Developer's Cookbook".

    The ASP.NET chapter also has a little bare-bones (that needs a little work) web app that displays a command line interface in a web browser to your web server (called WebShell).

    -Mark Schmidt

  • User profile image

    That is exactly what i am looking for.
    Thank You!

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.