By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,122 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,122 IT Pros & Developers. It's quick & easy.

Console.WriteLine in Windows form application

P: n/a
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
Dec 4 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
For debugging purposes and on Windows Forms you should really always use
Debug.WriteLine
Dennis C. Drumm wrote:
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

Dec 4 '05 #2

P: n/a
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.)

Dec 6 '05 #3

P: n/a
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
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:an****************@TK2MSFTNGXA02.phx.gbl...
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.)

Dec 6 '05 #4

P: n/a
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.)

Dec 7 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.