Results 1 to 3 of 3

Thread: RTFText alignment

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    RTFText alignment

    Hi ...

    How to set the text alignment in a RTF text box ????



    Thanks anyway !!!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216
    Anyone ??????

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Use the .SelAlignment property..

    Example:

    VB Code:
    1. RichTextBox1.SelStart = 0
    2. RichTextBox1.SelLength = Len(RichTextBox1.Text)
    3. 'RichTextBox1.SelAlignment = vbLeftJustify
    4. RichTextBox1.SelAlignment = vbCenter
    5. 'RichTextBox1.SelAlignment = vbRighttJustify

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