Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Evansville, Indiana, USA
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    button enabled = false font color (2007)

    Is there a way to change the caption color of a button when it is disabled? Here is what i have:
    Me.btnUpdateNetwork.ForeColor = RGB(255, 0, 0)
    Me.btnUpdateNetwork.Caption = "NO NETWORK CONNECTION"
    Me.btnUpdateNetwork.Enabled = False
    But the font is not red. When i comment out the enabled line, the font is red. Is there a way to do this?
    Thanks,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: button enabled = false font color (2007)

    No, the caption a disabled button is always "grayed out", regardless of the font color specified by you. That color is only used when the button is enabled.

  3. #3
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Evansville, Indiana, USA
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: button enabled = false font color (2007)

    OK... I will just add a label to the form and have it display the message in red.
    Thanks,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •