• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 679
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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