-
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])
-
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