Results 1 to 3 of 3

Thread: Ritch text box wrapping

  1. #1
    Guest

    Exclamation

    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
    Location
    Canada
    Posts
    3,946

    <?>

    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.

    Code:
    Private Sub File1_Click()
        RichTextBox1.LoadFile File1.Path & "\" & File1.FileName
    End Sub
    or
    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
    Guest
    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