Solved

Consistent Control Color Across Clients

Posted on 1998-09-16
1
139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 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