Visual Basic - Integrating a command prompt help
Hey everyone!
Here's what I have.
- A panel with cmd.exe embedded in it.
- A textbox and a button below that.
- When I enter text into the textbox and press the button, I want the text that was entered in the textbox to be sent to the command prompt, and entered as a command.
- I need to be able to have more than any number of these windows open at a time, so I'm not sure if SendKeys is the best for this.
Any help/advice is appreciated!
Re: Visual Basic - Integrating a command prompt help
I'm assuming that the way you are embedding the cmd.exe is by calling Process.Start and then setting the handle to the panel's handle. If that's the case then you need to pass the appropriate arguments. Now I know you're able to do this when calling Start, but I don't know if you're able to do this once the process has started. But it's something to look into.
Re: Visual Basic - Integrating a command prompt help
Hey,
Thanks for your reply. Yes, you have it exactly right, thats exactly whats going on. Ive been researching it for quite a while now, but to no avail. Any help is appreciated, thanks!