[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

Changing a color of a disabled link label

Is it possible to change the color of a disabled link label in a windows form?  I want to make it the standard color a regular label when it's disabled versus grayed out.
0
MrFantastic6
Asked:
MrFantastic6
  • 2
1 Solution
 
Snarf0001Commented:
Sure, just set the DisabledLinkColor property.
0
 
Éric MoreauSenior .Net ConsultantCommented:
this is not easy. check http://www.emoreau.com/Entries/Articles/2005/07/Colors-of-disabled-controls.aspx

you will not find a link label but chances are that it is working like another control
0
 
MrFantastic6Author Commented:
wow, i was REEEEALLLY hoping that it was as easy as disabledLinkColor property.  it had ZERO effect.
0
 
Snarf0001Commented:
I think I misunderstood, if you mean the actual Link inside the control is disabled, then the .DisabledLinkColor will work.
If you mean the linklabel itself is disabled (which I now believe is what you meant), then Erics code is unfortunately what you need.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now