473,795 Members | 3,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Standard Form Color?

67 New Member
Does anyone know what the RGB values are for the standard Access form color?

Thanks!
Apr 10 '08 #1
9 6861
Trevor2007
68 New Member
I don't think RGB color values will work in access but here is the default form color access value -2147483633
Apr 10 '08 #2
missinglinq
3,532 Recognized Expert Specialist
You can use RGB color values in Access VBA, but I know no one who does and have no clue how they're used or the paticular combinations.

What Trevor2007 gave you is the Windows ColorID for the standard Access background. The advantage in using these in Access is that it assures you that your app will reflect the end users' preferences, if they've gone into Windows Control Panel and changed things from the defaults. For instance, a user that's modified his/her color scheme in Windows may have bluish green command buttons, which is the color they'll be in your app, since you can't set this property in Access.

If you've used a pallette and chosen a bright red as your form backcolor , it may look fine with your Windows color scheme, but bluish green command buttons will certainly clash with the red on the user's machine! But if you only use the Windows color codes, you know that they'll blend in with the user's choices.

These color codes can be used in VBA code as well as in the Property Sheet.

Expand|Select|Wrap|Line Numbers
  1. Color ID..... Color Description
  2.  
  3.   ---------------------------------
  4.  
  5.   -2147483648 Scroll bar
  6.  
  7.   -2147483647 Desktop
  8.  
  9.   -2147483646 Active window title bar
  10.  
  11.   -2147483645 Inactive window title bar
  12.  
  13.   -2147483644 Menu bar
  14.  
  15.   -2147483643 Window
  16.  
  17.   -2147483642 Window frame
  18.  
  19.   -2147483641 Menu Text
  20.  
  21.   -2147483640 Window Text 
  22.  
  23.  
  24.    -2147483639 Title bar text
  25.  
  26.   -2147483638 Active window border
  27.  
  28.   -2147483637 Inactive window border
  29.  
  30.   -2147483636 Application background
  31.  
  32.   -2147483635 Highlight
  33.  
  34.    -2147483634 Highlight Text
  35.  
  36.   -2147483633 3-D face 
  37.  
  38.   -2147483632 3-D shadow
  39.  
  40.   -2147483631 Dimmed (disabled) text
  41.  
  42.   -2147483630 Button Text
  43.  
  44.   -2147483629 Inactive window title bar text
  45.  
  46.   -2147483628 3-D highlight  
  47.  
  48. -2147483627 3-D dark shadow
  49.  
  50.   -2147483626 3-D light
  51.  
  52.   -2147483625 ToolTip Text
  53.  
  54.   -2147483624 ToolTip background
  55.  
  56.   -2147483621 Active window title bar color2
Linq ;0)>
Apr 11 '08 #3
missinglinq
3,532 Recognized Expert Specialist
Life is strange! Doing something totally unrelated to your post, I came scross the numbers you need:

R 192
G 192
B 192

Linq ;0)>
Apr 11 '08 #4
Coolboy55
67 New Member
Life is strange! Doing something totally unrelated to your post, I came scross the numbers you need:

R 192
G 192
B 192

Linq ;0)>
Wow, thanks for all the information! I'll be sure to use your recommendations from your first post. Is there a way to contribute to these forums? The experts here are so useful!
Apr 11 '08 #5
missinglinq
3,532 Recognized Expert Specialist
The way to "contribute " is to the site is to
  1. Tell friends who program about us
  2. Come back often
  3. Once you've gained some experience, help to answer questions
Linq ;0)>
Apr 11 '08 #6
NeoPa
32,579 Recognized Expert Moderator MVP
To determine the RGB factors for a colour given in a colour property consider it as a number where Red, Green & Blue are all assigned 8 bits each.
Red is the least-significant portion of the number, then Green and then Blue.

Consider (for simplicity of explanation) you have three factors - {R}, {G} & {B}. The number in the property would be {R} + ({G} * 256) + ({B} * 65536).
256 = 2^8 & 65536 = 2^16.

Reversing this process I have created a simple spreadsheet (formulae shown below) which determines the three factors when you enter the property value in cell A1 :
Expand|Select|Wrap|Line Numbers
  1. .   A             B
  2. 8421631   =MOD($A$1,2^8)
  3.           =INT(MOD($A$1,2^16)/2^8)
  4.           =INT(MOD($A$1,2^24)/2^16)
This value is for a dark pink I found in the top left of the colour grid. The values displayed in my spreadsheet were :
Expand|Select|Wrap|Line Numbers
  1. .  A      B
  2. 8421631  255
  3.          128
  4.          128
Apr 11 '08 #7
NeoPa
32,579 Recognized Expert Moderator MVP
Any of the negative numbers quoted so far are predefined constants and they are NOT RGB values.

As explained, an RGB value is constrained to the least significant 24 bits of a 32-bit value. Negative numbers, by definition, use the most significant bit (bit#31) so cannot be an RGB value.
Apr 11 '08 #8
Coolboy55
67 New Member
Any of the negative numbers quoted so far are predefined constants and they are NOT RGB values.

As explained, an RGB value is constrained to the least significant 24 bits of a 32-bit value. Negative numbers, by definition, use the most significant bit (bit#31) so cannot be an RGB value.
Thanks again for the excellent information! I knew there had to be some conversion algorithm for the numbers, so here it is then!
Apr 14 '08 #9
NeoPa
32,579 Recognized Expert Moderator MVP
No worries CB.

Glad it helped :)
Apr 14 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

25
3795
by: Magnus Lie Hetland | last post by:
Is there any interest in a (hypothetical) standard graph API (with 'graph' meaning a network, consisting of nodes and edges)? Yes, we have the standard ways of implementing graphs through (e.g.) dicts mapping nodes to neighbor-sets, but if one wants a graph that's implemented in some other way, this may not be the most convenient (or abstract) interface to emulate. It might be nice to have the kind of polymorphic freedom that one has with,...
10
2882
by: Andres Eduardo Hernando | last post by:
Hi, I'm not entirely sure this is the right group to ask this question, but I saw a similar one above, and the group's charter is not clear enough about it, so, here I go: ;) What is the standard behavior (if any) when the same name is attached to more than one field in a <form>? An example (that closely resembles the problem I'm working on) will be (this is a standard radio group without a default selected option): <form ...> <input...
2
1970
by: Raghavendran Muraleetharan | last post by:
I am having an existing VB 6 standard .EXE application. Now I am developing a wrapper application in .Net and I want to launch the VB 6 exe app embedded with in the .Net App window. That is, the standard EXE application should be activated in-place within the .Net window and should be confined within the ..Net app window. Any suggestions on how I go about doing this stuff? This is a repeat post for the new visitors.
20
2275
by: skoco | last post by:
Hello! Do you know when will be the new standard for c++ approved? And WHAT will be inside? Hope there will be some thread and synchro classes, text and XML parsing, new containers and other new things. God save me from coding in boring & slow & no pointers java!! p.s.: how much time usually needs the compiler vendors to implement new standards? p.s.2: anybody knows which compiler supports export keyword? Thanks to you all.
19
2211
by: Steven T. Hatton | last post by:
The short sample program listed below has some features that I find to be bad style. In particular, they fail to communicate the connection between names used in this program and the location in which they are declared and or defined. I'd like to know if there are any features of this code you believe represents bad programming technique. How would the feature be better implemented? /* * The Apache Software License, Version 1.1 *
29
2412
by: David Eng | last post by:
In replying to P.J. Plauger ( http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=1089204435.746211%40master.nyc.kbcfp.com&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dcomp.lang.c%252B%252B.moderated ) who responded my post in comp.long.c++ moderated neww group regarding "C++ standard and C++/CLI" topic, I worte the following post which was sensor by comp.lang.c++.moderated: ...
4
1327
by: Steven T. Hatton | last post by:
Are the Standard Headers as described in ISO/IEC 14882:2003 available in source file form as they appear in the standard? What I mean by this is, for example §20.4 describes the Header<memory> and contains segments of C++ code such as the following: namespace std { // 20.4.1, the default allocator: template <class T> class allocator; template <> class allocator<void>; template <class T, class U>
43
5029
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with STL, and you can convert back and forth between std::string and Qt::QString, etc. Are there any...
3
1195
by: Jim Heavey | last post by:
Hello, my company has a standard format that I must follow when creating a page. The top portion of the page contains a standard heading which should be placed on each page. This "heading" has a form and some javascript which has "action" which invokes some javascript. I am trying to figure out how I can standardize this so that I do not have to copy this code to each and every page. I thought I might be able to use a "User Control",...
9
3353
by: Richard Brown | last post by:
Can anyone give me a good argument one way or another? I have an 'address' set of fields that are used in various situations (a client has an address, a destination has an address, etc). These fields are all normalized into a seperate database table from the client and destination tables. My question is, which is better to create, a User Control, or a generic class that will add controls to a form directly, applying its common event...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.