Results 1 to 6 of 6

Thread: [RESOLVED] [2005] RichTextBox1.BackColor

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Resolved [RESOLVED] [2005] RichTextBox1.BackColor

    Hi,

    When I change: RichTextBox1.Enabled = False
    The back color change to Gray, I want to Keep the color white
    How can I do it?

  2. #2
    Addicted Member
    Join Date
    Dec 2006
    Location
    London, England
    Posts
    142

    Re: [2005] RichTextBox1.BackColor

    Change the property backcolor to whatever you want it to be, that should help

    VB Code:
    1. TextBox1.BackColor = Color.Blue

    Redmo
    Last edited by redmo; Dec 24th, 2006 at 02:12 PM.
    The universal aptitude for ineptitude makes any human accomplishment an incredible miracle -Col. John P. Stapp


    Please rate the posts that have helped. Makes us feel all warm and fuzzy

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Re: [2005] RichTextBox1.BackColor

    Hi,

    It's work for TextBox
    But not for RichTextBox

    Thanks

  4. #4
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,950

    Re: [2005] RichTextBox1.BackColor

    How about setting it as readonly.

    RichTextBox1.ReadOnly = True

    It will retain its colors, but not be editable.

  5. #5
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    Re: [2005] RichTextBox1.BackColor

    richtextbox.backcolor= color.blue

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Re: [2005] RichTextBox1.BackColor

    Hi,

    The ReadOnly method done the trick.

    Thanks All

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