How do i get a result to goto a new line in a richtextbox? Also how do i save the entire contents of a richtextbox?
Help would be great. thanks :)
Printable View
How do i get a result to goto a new line in a richtextbox? Also how do i save the entire contents of a richtextbox?
Help would be great. thanks :)
Hi,Quote:
Originally Posted by bagstoper
For your second question you can use te SaveFileDialog for that.
For your first question. What do you mean with; get a result an go to a new line in a richtextbox?
Wkr,
sparrow1
A RichTextBox simply displays a String. If you want a line break in a String then you add Environment.NewLine or ControlChars.NewLine to it, e.g.vb.net Code:
Dim str As String = "Line 1" str &= Environment.NewLine & "Line 2"