Results 1 to 2 of 2

Thread: RichTextBox tab spacing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    London UK
    Posts
    255

    RichTextBox tab spacing

    How can I change how many spaces are equivalent to a tab in a RichTextBox? At the moment it's on 8 and I need it on 4.
    Not at all related to sheep...

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    It may look like spaces, but behind the scenes it's actually pixel positions:
    ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWindowsFormsRichTextBoxClassSelectionTabsTopic.htm

    Do something like this:
    VB Code:
    1. Dim arrTabs() As Integer = {50, 100, 150}
    2.         rtxStuff.SelectionTabs = arrTabs

    If you do this before any text is added to the richtext, it will apply to any text you add in.

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