Results 1 to 3 of 3

Thread: Visual Basic - Integrating a command prompt help

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    5

    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!

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    5

    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!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width