Thread: Write to Console from a WinForm

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001

    Write to Console from a WinForm

    I downloaded a sample project that was a Winform app that printed debug data using Console.WriteLine() to the console screen that popped up behind the WinForm.

    I tried making a new Winform myself, and using Console.WriteLine in a click event, it processed but the console didn't pop-up and show the text (even after I put Console.Read after the write).

    I couldn't find any difference (code or references) between the sample and mine.

    any ideas ?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    Maybe the first was a console project from the start ? Just a wild guess...

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Dec 2002
    if its anything like java
    which, C# is
    then yes, start it as a console app

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  2. Told ya so...
    By Cheeze-It in forum A Brief History of
    Replies: 58
    Last Post: 09-12-2007, 08:12 PM
  3. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  4. Picking up characters in console window
    By GaPe in forum C Programming
    Replies: 1
    Last Post: 11-03-2002, 06:21 PM