I set the text property to string in TextBox on the form with multiline property set true which contains '\n' characters. it just provides a small square box where the newline should work but it does not start a new line. Somebody Help....!
I set the text property to string in TextBox on the form with multiline property set true which contains '\n' characters. it just provides a small square box where the newline should work but it does not start a new line. Somebody Help....!
Environment.NewLine try function. It is a constant for the " \ r \ n" , that works on the current platform, but there is no guarantee that the new standard for the platform will be used for text professions.
It is not by area information problem. its resource management program, the '\n' a '\\n '. translate. It does not recognize the symbol. When you add new line in the Utilities Act want to add, then hit the Shift + Enter. Resource management program recognizes it as '\r\n'.
Do one thing try lines property rather than textbox/text property :
Code:textBox.Lines.Add("Line1"); textBox.Lines.Add("Line2");
Bookmarks