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…
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Non Apple Keyboards
by
pmcjr6142
1 hour, 3 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
1 hour, 18 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
39 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
31 minutes ago -
default apps
by
chasfinn
13 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
8 hours, 8 minutes ago -
Adding links to text in Word 2000
by
sgeneris
9 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
1 hour, 46 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
1 hour, 55 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
12 hours, 54 minutes ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
1 hour, 59 minutes ago -
Planning ahead for migration
by
Susan Bradley
2 hours, 38 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
21 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
3 hours, 53 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
25 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
4 hours, 37 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
1 hour, 8 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
2 days, 10 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
2 days, 22 hours ago -
Problem using exfat drives for backup
by
Danmc
2 days, 23 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 1 hour ago -
Change Info in the Settings window
by
CWBillow
3 days, 5 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
3 days, 12 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
2 days, 22 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
2 days, 22 hours ago -
WuMgr operational questions
by
Tex265
22 hours, 27 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
4 days, 3 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
3 days, 4 hours ago -
Backing up Google Calendar
by
CWBillow
4 days, 10 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
4 days, 22 hours ago
Recent blog posts
- 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
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
- Windows Settings today
- Mail Merge magic in Microsoft Word
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.