471,319 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Console.WriteLine in Windows form application

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
4 10081
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
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
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
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.

Similar topics

4 posts views Thread by bob lambert | last post: by
3 posts views Thread by Henry Seymour | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.