I'm trying to find ideas on how to accomplish recreating the console in a richtextbox. The first idea I've found is to redirect the output from an invisible console app running simultaneously. Second, using two text boxes, one for output, one for input.
The problem I've had with both of these is that I don't know which event I should be subscribing to. Yes I have looked all over the internet all day for this, but the closest I found was someone doing it in VB. So my questions:
- Are there any different ideas than the ones I listed?
- Is it possible to have only one rTextBox for both input and output?
- If redirection is the best solution, could anyone please explain how I set up the redirect; I have created a separate file (poker.cs), which is setup to run through the console. If you look at the top answer here: Redirect console output to textbox in separate program he has two functions, but I have no idea how to set it up in regards to my richTextBox and running a .cs file; it could also be that I was using the wrong event. I had been running it from load.
I would absolutely prefer to have the richTextBox run as if it were a console. I know it can be done. I want to believe.