Results 1 to 2 of 2

Thread: Question about RichTextBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    66

    Question

    I have a RichTextBox control which contains a file with fixed lines (ex: 200 chars per line) and I would like to know if it is possible by using the RIGHTMARGIN (??) property to tell VB that my document has only 200 chars per line.

    Thanks
    Thierry Demoy ([email protected])

  2. #2
    Guest
    Set the ScaleMode to Characters.
    Code:
    Me.ScaleMode = vbCharacters
    RichTextBox1.RightMargin = 200
    Then from anywhere, you can retrieve the RightMargin (which is the number of character per line).
    Code:
    Private Sub Command1_Click()
        MsgBox RichTextBox1.RightMargin
    End Sub

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