Console.WriteLine in Windows form application

  • Thread starter Dennis C. Drumm
  • Start date
D

Dennis C. Drumm

I've noticed that using Console.WriteLine statements to debug a Windows
Forms Application will sometimes write output to the VS 2005 Output window
and sometimes it doesn't. I know that Debug.WriteLine will always write to
the Output window, but the syntax for Console.WriteLine is more convenient
to use.

What is happening here and why does it work sometimes and not at others?

Thanks,

Dennis
 
B

Benny Raymond

For debugging purposes and on Windows Forms you should really always use
Debug.WriteLine
 
T

TerryFei

Hi Dennis,
I just wanted to check how things are going and whether or not your issue
has been resolved.
If there is any question, please feel free to join the community and we are
here to support you at your convenience. Thanks again and have a nice day.

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
D

Dennis C. Drumm

Thanks for the responses to all,

I knew from the documentation that Debug.Writline was the correct choice for
a Windows Form application, but I was just curious why the Console.Writeline
worked in some cases and not others.

Its not a real important issue, so lets drop it.

Thanks again,

Dennis
 
T

TerryFei

Hi Dennis,
Thanks for your feedback!
I am glad to know the problem has been resolved!

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top