Solved

Consistent Control Color Across Clients

Posted on 1998-09-16
1
138 Views
Last Modified: 2010-04-30
I have found that when I install and execute my VB 6.0 app on certain clients, the controls on the form are not always the same color as they are in the design environment.  Perhaps this is a consequence of the client system color settings.  Nonetheless, I am looking for a routine that will ensure the back and forecolors of my controls remain consistent with their design-time properties during execution.

Thanks.
0
Comment
Question by:dangie
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1435326
It is very questionable whether an application should prefer its color preference over the customers color preference but OK.
All colors like forecolor and backcolor of form and button are defined by constants like vbWindowsBackground and vbButtonFace.
In stead of using these constants force them to a fixed color. vbBlack or vbWhite.
In that situation, the colors are fixed.
Note that you have to do that for every form and every control.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question