Results 1 to 4 of 4

Thread: [RESOLVED] RichTextBox word wrapping

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    547

    Resolved [RESOLVED] RichTextBox word wrapping

    I am struggling to find any thing on google currently on word wrapping indenting.

    When i am receiving server responses some are to long for the RTB so obviously continue on the next line. Each line is time stamped. If the word is to long it looks as follows

    Code:
    15:00 this is a long
    message
    15:01 another message and so on
    what i would like is for the new line to be indented to under the text above so it does not wrap directly under the time stamp.

    Code:
    15:00 this is a long
             message
    15:01 another message and so on
    not really sure what to look for

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: RichTextBox word wrapping

    I think a list view or grid would be the preferred method to display data in columns.
    That is the very essence of human beings and our very unique capability to perform complex reasoning and actually use our perception to further our understanding of things. We like to solve problems. -Kleinma

    Does your code in post #46 look like my code in #45? No, it doesn't. Therefore, wrong is how it looks. - jmcilhinney

  3. #3
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: RichTextBox word wrapping

    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, _
                               ByVal e As System.EventArgs) _
                               Handles MyBase.Load
            Me.RichTextBox1.SelectionHangingIndent = 20
        End Sub
    
    End Class
    Attached Images Attached Images  

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    547

    Re: RichTextBox word wrapping

    Thank you both for the suggestions.

    ForumAccount works a charm. Star

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