How to I get multiple line in a label in C#? Thanks.
Printable View
How to I get multiple line in a label in C#? Thanks.
Like this :
PHP Code:this.label2.Text='\n' + "1st Line" + '\n' + "2nd Line";
'\n' is equivalent to Environment.NewLine which presents begining of new line.
You have other escape caracters if you want like \t ( a tab) its just like old C.