Console.WriteLine

msrnivas

New member
Joined
Mar 31, 2005
Messages
2
Programming Experience
Beginner
Hi

Working in windows form.
When i try to display some thing on form its not displaying anything.
What cloulb be the prob?Do i need to set anything in Visual Studoi.net?
Advice me.

My code:
Console.WriteLine("Hello")

 

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
Console.WriteLine writes to the console not the form. (if you look under output in the debugger you'll see Hello)
If you want to to write on the form there are a number of ways to do it, probably the easyest way would be to add a label and in your code set the text property.
 
Top Bottom