Solved

Changing a color of a disabled link label

Posted on 2010-11-19
4
642 Views
Last Modified: 2012-05-10
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
Comment
Question by:MrFantastic6
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Snarf0001
ID: 34176746
Sure, just set the DisabledLinkColor property.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 34176936
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
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34176991
wow, i was REEEEALLLY hoping that it was as easy as disabledLinkColor property.  it had ZERO effect.
0
 
LVL 23

Expert Comment

by:Snarf0001
ID: 34177001
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question