Results 1 to 3 of 3

Thread: [2008] new line in richtextbox/ saving a richtextbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    [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.

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2008] new line in richtextbox/ saving a richtextbox

    Quote 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.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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:
    1. Dim str As String = "Line 1"
    2.  
    3. str &= Environment.NewLine & "Line 2"
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width