Results 1 to 3 of 3

Thread: [RESOLVED] Change forcolor of a readonly textbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2006
    Posts
    19

    Resolved [RESOLVED] Change forcolor of a readonly textbox

    Evening,

    I have a readonly textbox which I want to display red text.
    Changing the forecolor property does not work when its readonly.

    I do not particularily want to use a label.
    Does anyone have any suggestions, workarounds?

    Cheers

  2. #2
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: Change forcolor of a readonly textbox

    It's kind of goofy. You'll need to change the Backcolor property to a regular color first, not a control color, then change your Forecolor, then you can change the Backcolor back to a standard control color if you want. Otherwise it will continue to use the system settings. I guess this has something to do with the way the designer picks up and auto-codes color changes.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2006
    Posts
    19

    Re: Change forcolor of a readonly textbox

    Thanks bg.

    Did the trick.
    Wouldn't have picked that in a million years..Cheers

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