Solved

Changing a color of a disabled link label

Posted on 2010-11-19
4
634 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
  • 2
4 Comments
 
LVL 22

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 22

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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