I’m just curious about something… When certain criteria is met, I do things like set Enabled to False for controls like Command Buttons, Text Boxes, Subforms, etc… In this case I want to “disable” two different types of controls …namely Labels and Images… that have a value in the Hyperlink Address property… Since there’s no Enabled property for those two control types, I can’t do that… Does anyone know the best way to do this? … Thanks in advance…
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Disabling?? hyperlinks… (2000 SR-3)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Disabling?? hyperlinks… (2000 SR-3)
- This topic has 8 replies, 3 voices, and was last updated 21 years ago.
AuthorTopicWSAlexya1
AskWoody LoungerMarch 22, 2004 at 6:28 pm #402645Viewing 3 reply threadsAuthorReplies-
WSgvjimm
AskWoody LoungerMarch 22, 2004 at 6:54 pm #802812Trudi,
When faced with similar problems, I’ve opted to use the “Visible” property to force the label or image to become invisible until needed.
Alternatively, for the label control at least, you could define the label area as a command button, and set the other properties of the button such that it looks like a label. The command button can be set inactive by simply clearing all related events. Actually, you might be able to use the command button to also replace the image control, as well (though I’ve never tried it).
— Jim
WSgvjimm
AskWoody LoungerMarch 22, 2004 at 6:54 pm #802813Trudi,
When faced with similar problems, I’ve opted to use the “Visible” property to force the label or image to become invisible until needed.
Alternatively, for the label control at least, you could define the label area as a command button, and set the other properties of the button such that it looks like a label. The command button can be set inactive by simply clearing all related events. Actually, you might be able to use the command button to also replace the image control, as well (though I’ve never tried it).
— Jim
WSbushaw
AskWoody LoungerMarch 22, 2004 at 7:07 pm #802830Trudi,
Another option may be to set the hyperlink property to a null string when disabled and to the intended address when enabled. This has the disadvantage (for labels and images) that it’s not obvious, appearance-wise, when they’re enabled vs. disabled.
A more cumbersome approach would be to have two overlapping controls – one that looks the way you want it to look when things are enabled (including the hyperlink address) and another one (on top of it) to look the way you want it to look when disabled — maybe a different image or a differently colored label. Then set visible to true for the former and to false for the latter when you want it enabled and vise versa when you want it disabled.
These both, of course, require some “design changes” which you are apparently trying to avoid.
-
WSAlexya1
AskWoody LoungerMarch 22, 2004 at 7:24 pm #802853Thanks Tom!
I did think of setting the hyperlink property to a null string but there are quite a few of these images and labels to deal with… I also had the idea of removing the value from the hyperlink address property itself… and adding some code in the click event to deal with it… I could do a boolean test in that procedure… I like your second idea… Creating Image and labels over top of one another… and making the right ones visible at the right time… I could name all of the “disabled” ones with the same prefix and see the visible property to true on demand…
Hmm… Gotta think this one through… I just wanted to check with others to see if I was missing some obvious and simple way of accomplishing this…
Thanks again! Have a great day!
-
WSAlexya1
AskWoody LoungerMarch 22, 2004 at 7:24 pm #802854Thanks Tom!
I did think of setting the hyperlink property to a null string but there are quite a few of these images and labels to deal with… I also had the idea of removing the value from the hyperlink address property itself… and adding some code in the click event to deal with it… I could do a boolean test in that procedure… I like your second idea… Creating Image and labels over top of one another… and making the right ones visible at the right time… I could name all of the “disabled” ones with the same prefix and see the visible property to true on demand…
Hmm… Gotta think this one through… I just wanted to check with others to see if I was missing some obvious and simple way of accomplishing this…
Thanks again! Have a great day!
WSbushaw
AskWoody LoungerMarch 22, 2004 at 7:07 pm #802831Trudi,
Another option may be to set the hyperlink property to a null string when disabled and to the intended address when enabled. This has the disadvantage (for labels and images) that it’s not obvious, appearance-wise, when they’re enabled vs. disabled.
A more cumbersome approach would be to have two overlapping controls – one that looks the way you want it to look when things are enabled (including the hyperlink address) and another one (on top of it) to look the way you want it to look when disabled — maybe a different image or a differently colored label. Then set visible to true for the former and to false for the latter when you want it enabled and vise versa when you want it disabled.
These both, of course, require some “design changes” which you are apparently trying to avoid.
Viewing 3 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
32 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
2 hours, 58 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
3 hours, 33 minutes ago -
Still version 23H2?
by
WSbxcfilm
3 hours, 46 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
9 hours, 43 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
10 hours, 37 minutes ago -
Where is Windows going?
by
Susan Bradley
54 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 4 hours ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 4 hours ago -
Windows 11 Hotpatch
by
Hackmuss
11 hours, 47 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 5 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
23 hours, 20 minutes ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
20 hours, 20 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 17 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
1 day, 1 hour ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day, 2 hours ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 day, 2 hours ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 18 hours ago -
How to remove an update preview
by
Gunny
21 hours, 38 minutes ago -
Third party add ins reminder
by
Susan Bradley
4 hours, 20 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 12 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
2 days, 23 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
3 days, 1 hour ago -
Check out the home page for Signal
by
CAS
2 days, 23 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
3 days, 5 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
3 days, 5 hours ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
3 days, 5 hours ago -
Limits on User Names
by
CWBillow
3 days, 2 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
1 day, 2 hours ago
Recent blog posts
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.