I want to display this line inclucing the quote marks:
"Hello world"
I do I include the quote marks?
Simple I am sure, but I am new.
Thanks!
Printable View
I want to display this line inclucing the quote marks:
"Hello world"
I do I include the quote marks?
Simple I am sure, but I am new.
Thanks!
You have to escape the characters. Try this
Code:label1.Text = "\"Hello World\"";
Just to throw out an alternative, you can also do:
Code:Console.WriteLine(@"""Hello World""");