Results 1 to 5 of 5

Thread: changing color of the text

  1. #1
    Guest

    Unhappy

    ok! here's is my question:
    I have a textbox and I would like to have some words
    of the text in one color and some other words with a different color..........how can I do this.
    Thanks

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    You can't...

    ...at least not with a textbox, use a richtextbox instead.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Guest

    Unhappy

    crptcblade!
    Could you tell me how does the richtextbox work......
    just the basic functions for changing the color and adding
    the text...please.......

  4. #4
    Guest
    Nevermind! it's quite easy to use it.......thanks

  5. #5
    Guest
    Yup maritxu, purdy easy to use .

    Add text:
    RichTextBox1.Text = RichTextBox1.Text & " more text"

    Change color:
    RichTextBox1.SelColor = vbBlue

    Just look in your Object Browser for more.

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