Results 1 to 7 of 7

Thread: Console to RichtextBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Console to RichtextBox

    I am creating an output window for a C++ editor. how will i create the console in vb.net as an output window and transfer it to richtextbox?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Console to RichtextBox

    Go to the VB.NET CodeBank forum and you'll find a thread on redirecting Console streams. I believe it's by gigemboy.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Console to RichtextBox

    i couldn't find it.. what i've found is an automated Command prompt but it fails

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Console to RichtextBox

    Quote Originally Posted by xpinvader View Post
    i couldn't find it.. what i've found is an automated Command prompt but it fails
    If that's all you can tell us then we can't help. If you can tell us exactly which thread you found (I'm guessing that it's the same one), exactly what you did and exactly what happened then we might be able to do something.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Console to RichtextBox

    http://www.vbforums.com/showthread.php?t=381405

    I found it here. I've used the 2005 example.. my problem is when i run a C++ exe which needs to display and input.. it cannot return the display except if I will type another command.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Console to RichtextBox

    That is the very thread I was talking about and I'm afraid your description of the problem is still far too vague. When I said "exactly" in my last post I meant "exactly". We can't see what you see or what you think. All we know is what you tell us so you have to provide a FULL and CLEAR description of EXACTLY what you did and EXACTLY what happened when you did it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Console to RichtextBox

    1. I run the 2005CMDExample then, i change directory and it worked. I want to run a C++ program, inside that program is 2 lines, one line to display "Who are you?" and one line to input my answer. After I entered the name of the exe file, the exe file is supposed to show
    Who are you? first then I will be able to input my answer. what happened was it will return the "Who are you?" after i will send another command, supposed to be it will immediately return the "Who are you?" followed by the input..
    Last edited by xpinvader; Dec 16th, 2009 at 10:19 PM.

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