Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would I display a console in a form? 2

Status
Not open for further replies.

NeoValence

Technical User
Mar 21, 2006
35
US
Hi All,

I new to oop programming, so please excuse the new-b question.

Is it possible to display a console in a windows form?

If so, how would one go about doing so? An example would be greatly appreciated.

Thanks,
 
What do you mean "display" ?
Just launch the cmd dos emulator ?
 
TipGiver,

I guess display is the wrong word for it. Basically, I want to have a Windows Application that has a console/terminal built into one of the forms. I just want to use it for writing data to, and reading data from a serial port. I've already accomplished doing such, but only by way of a console app. I was just trying to step it up a notch by making it a windows app. A perfect example of what I mean would be the program Pocomm Plus by Symantec.

What namespace is the cmd dos emulator located under? A search of the object browser returns nothing.

Thanks for your post.
 
Just send your writelines to a textbox which you put on your form.

 
Hi,
sorry for may late reply.

You can do something like the suggested or use the system.diagnostics namespace and the process class. This will allow you not to modify your existing console app. You have to redirect the standard input and output. You can show the output to a multiline textbox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top