Recently I upgraded my hardware and improved the screen and graphics. I have now realised that most of my forms look awful because the grey I have used for most of the text boxes, and some backgrounds, is different from the grey of buttons. When I select grey from the toolbar dropdown I get a background of 12632256 whereas the button background is minus2147483633. This value can’t be selected from the colour swatch (I don’t even understand why it is a minus number). Is there an easy way of selecting the button grey colour without having to enter the colour code manually?
![]() |
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 |
-
Matching the button colour (A2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Matching the button colour (A2000)
- This topic has 5 replies, 3 voices, and was last updated 21 years, 10 months ago.
Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerJuly 15, 2003 at 8:37 am #693660Hi David,
The negative color values are the system colors you can set in the Appearance tab of the Display Properties control panel. These are not fixed colors, but depend on the user’s individual settings. Buttons may be grey in your Windows, but purple in somebody elses. The color value is -2147483633 in all cases. You can find the values involved as follows:
Switch to the Visual Basic Editor (Alt+F11) (don’t worry, there is no programming involved)
Activate the Object Browser (F2)
Type systemcolor into the search box and press Enter.
You will see a list of SystemColorConstants named vb3DDKShadow etc.
If you click on one of them, you will see its value in the lower pane of the Object Browser.
You can select this value and copy it to the clipboard (Ctrl+C)
The button color is vbButtonFace. Other useful constants are vbButtonText (the color of the caption of a button – default is black), vbWindowBackground (the standard background color of a window in an application – default is white) and vbWindowText (the standard color of text – default is black). -
WSDollyP
AskWoody LoungerJuly 15, 2003 at 12:57 pm #693702Hi Hans
Thanks for the explanation. I have changed my default Windows colours to make matching easier. I hadn’t realised that buttons could be any other colour and it certainly makes the job of tying down the design of forms much harder if in fact users can change elements that Access doesn’t allow us to change.
In code I’ve now found a new set of constants thanks to your advice and will use them in my code instead of the constants I have defined myself for colours. Its a pity though that we can’t use these vb constants in properties dialogs whilst we are designing forms.
Again many thanks
-
WSHansV
AskWoody LoungerJuly 15, 2003 at 1:04 pm #693704>> Its a pity though that we can’t use these vb constants in properties dialogs whilst we are designing forms.
It certainly is a nuisance (even in Access 2002.) Strangely enough, you can choose between system colors and palette colors (fixed colors) when designing UserForms in other Office applications and in VB6 (see screenshot).
-
WScharlotte
AskWoody Lounger -
WSHansV
AskWoody LoungerJuly 16, 2003 at 5:40 am #693885I know, but it would be very convenient to be able to select a system color directly instead of copying and pasting from the Object Browser or typing the value directly. It shouldn’t be too difficult for the Access group inside Microsoft to get a copy of the VB color select dialog from their colleaugues.
-
-
-
-
Viewing 0 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
-
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 hours, 48 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 hours, 54 minutes ago -
0Patch, where to begin
by
cassel23
3 hours, 40 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
17 hours, 32 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
5 hours, 18 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
1 day, 2 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
17 hours, 4 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
4 hours, 11 minutes ago -
Installer program can’t read my registry
by
Peobody
5 hours, 4 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
14 hours, 51 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
22 hours, 11 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day, 13 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 22 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 23 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
20 hours, 6 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
2 days, 3 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 day, 4 hours ago -
Outdated Laptop
by
jdamkeene
2 days, 8 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 13 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 13 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
10 hours, 55 minutes ago -
May 2025 updates are out
by
Susan Bradley
1 hour, 50 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 19 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 19 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
15 hours, 31 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
3 days, 2 hours ago -
Apple releases 18.5
by
Susan Bradley
2 days, 20 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
3 days, 3 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
3 days, 4 hours ago
Recent blog posts
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.