[COLOR=black]TextBoxLines.Text &= Environment.NewLine & [COLOR=maroon]"This is a new line"[/COLOR][/COLOR]
[COLOR=black]TextBoxLines.AppendText(Environment.NewLine & [/COLOR][COLOR=black][COLOR=maroon]"This is a new line"[/COLOR][/COLOR][COLOR=black])[/COLOR]
[COLOR=black]TextBoxLines.AppendText([/COLOR][COLOR=black]Environment.NewLine[/COLOR][COLOR=black])[/COLOR][COLOR=black]
[/COLOR][COLOR=black]TextBoxLines.AppendText([COLOR=maroon]"This is a new line"[/COLOR][/COLOR][COLOR=black])[/COLOR]
I don't agree.(*)jmcilhinney said:While the addition operator works in this situation it is more proper to use the concatenation operator...
Again, my point of view is that it's the & operator that can cause issues.jmcilhinney said:There are certain situations where using the addition operator can cause issues...
Dim n As Integer = 10
MessageBox.Show("The number is " + n)
retkehing said:How to display the text in next line of the textbox?
this code go to a new line , but i need code , i'm clicked for any line insert code to this line , thanksTextBoxLines.AppendText(Environment.NewLine & "This is a new line")