|
-
May 4th, 2008, 04:30 PM
#1
Thread Starter
Hyperactive Member
[2008] new line in richtextbox/ saving a richtextbox
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
Last edited by bagstoper; May 4th, 2008 at 04:39 PM.
-
May 4th, 2008, 05:28 PM
#2
Re: [2008] new line in richtextbox/ saving a richtextbox
 Originally Posted by bagstoper
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,
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
Last edited by sparrow1; May 4th, 2008 at 05:39 PM.
-
May 4th, 2008, 07:15 PM
#3
Re: [2008] new line in richtextbox/ saving a richtextbox
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|