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?
![]() |
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 |
-
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
-
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 hour, 36 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
31 minutes ago -
Stop the OneDrive defaults
by
CWBillow
2 hours, 25 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
12 hours, 20 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
14 hours, 32 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
14 hours, 50 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
15 hours, 27 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
16 hours, 4 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
4 hours, 14 minutes ago -
Enabling Secureboot
by
ITguy
11 hours, 14 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
23 hours, 59 minutes ago -
No more rounded corners??
by
CWBillow
19 hours, 47 minutes ago -
Android 15 and IPV6
by
Win7and10
9 hours, 32 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 12 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 15 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 9 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
1 day, 22 hours ago -
May preview updates
by
Susan Bradley
1 day, 9 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 1 hour ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 14 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 11 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
13 hours, 48 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 13 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
10 hours, 34 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 2 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 15 hours ago -
Another test post
by
gtd12345
3 days, 15 hours ago -
Connect to someone else computer
by
wadeer
3 days, 10 hours ago -
Limit on User names?
by
CWBillow
3 days, 13 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.