Hi ...
How to set the text alignment in a RTF text box ????
Thanks anyway !!!
Printable View
Hi ...
How to set the text alignment in a RTF text box ????
Thanks anyway !!!
Anyone ?????? :(
Use the .SelAlignment property..
Example:
VB Code:
RichTextBox1.SelStart = 0 RichTextBox1.SelLength = Len(RichTextBox1.Text) 'RichTextBox1.SelAlignment = vbLeftJustify RichTextBox1.SelAlignment = vbCenter 'RichTextBox1.SelAlignment = vbRighttJustify