Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Console I\O to Textbox in VB.NET

Hows it going all!

Been a while since I wrote last! Well I have a dilemma

I am looking to give a textbox in my app the ability to emulate the Command Console.

Basically I want to pipe STDOUT, STDIN, & STDERR from a hidden Console, so that the textbox emulates the Console fully, so I can use it instead of the MS Console (cmd.exe).

Here is a link to do this in VB6 but I havent seen anything about VB.NET.

DOS Prompt Emulator (http://www.freevbcode.com/ShowCode.asp?ID=1545)

Thanks much! :D

- Jugg
[564 byte] By [Jugg] at [2007-11-11 7:40:13]
# 1 Re: Console I\O to Textbox in VB.NET
http://odetocode.com/Articles/97.aspx
Phil Weber at 2007-11-11 21:48:49 >
# 2 Re: Console I\O to Textbox in VB.NET
Thanks Phil!

Thats exactly what I was looking for!

I had never been to odetocode.com before either so i'm going to have to add that one to my list!

Thanks again!

-Jugg
Jugg at 2007-11-11 21:49:49 >
# 3 Re: Console I\O to Textbox in VB.NET
FYI, I found it by Googling for "c# stdout textbox".
Phil Weber at 2007-11-11 21:50:51 >
# 4 Re: Console I\O to Textbox in VB.NET
Whats Up!

Well I ended up coming across a little bug when I finally implemented the VB .NET CMDProc Streamer
in My Make Utility I made that Phil had suggested to me.

Any time I ran my batch to set my enviorment variables & then run make on my makefile I got...

process_easy: DuplicateHandle(In) failed (e=6)
make.exe: Interrupt/Exception caught (code = 0xc0000005, addr = 0x4233fa)
It has nothing to do with VB .NET as an entity it's self as it has to do with problems in cygwin.

I figured I would post it though incase someone else tries to use this with their own VB.NET Make Utility.

But fear not, a fix is avalible thanks to Dirk @ the Zeus Forum! :D

Take a look here (http://www.zeusedit.com/forum/viewtopic.php?t=38) to patch that pesky critter! :cool:

Once again thanks to Phil for Googling up OdeToCode to get me going!

Jugg
Jugg at 2007-11-11 21:51:45 >