How we can write output on second line in c# ??
How we can write the given code into two lines
MessageBox.Show("my name is " + LineBreak, "yazdan" ,
MessageBoxButton.OK, MessageBoxIcon.Information);
How we can start a new line after "my name is " and before "yazdan"
"my name is " + "\n" + "yazdan"
you can use either "\n"
or Environment.NewLine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With