Results 1 to 2 of 2

Thread: Haha....Rich TextBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    80

    Haha....Rich TextBox

    Anyone know how to have different formats within a richtext box.
    I can write font formatted one way (eg. BOLD) but when I go to write the next word on the same line in a different format, the whole line changes to the format of the second word.

    For example, if I add the word VISUAL to a rich textbox in bold, it works. Then if I go to add the word BASIC right after it NOT in bold, it changes both words to not bold.

    Are you following??

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You must use the SelBold property.
    VB Code:
    1. With RichTextBox1
    2.    .SelBold = True
    3.    .SelText = "Visual "
    4.    .SelBold = False
    5.    .SelText = "Basic"
    6. End With
    Best regards

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