Results 1 to 3 of 3

Thread: Ritch text box wrapping

  1. #1


    I have been trying to progran a ritch text file editor threw vb to have available on my under construction web site. I am having trouble making the text wrap in the RTF box. Ihave tryed the same methods in the properties as in a normal text but nothing changes. Is this a bug in the vb application or is it me? If it is me can anyone help?

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999


    I don't seem to have that problem. I can put the box on the form and the wrap will happen as long as the text is longer than the box. No extra code or anything needed. I am filling the textbox with the contents of a file.

    Private Sub File1_Click()
        RichTextBox1.LoadFile File1.Path & "\" & File1.FileName
    End Sub
    if I just type it in it wraps as well.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Yuo need to set the rightmargin property. Setting it to the richtextbox width makes it wrap at the edge of the richtextbox

    - gaffa

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