Solved

Consistent Control Color Across Clients

Posted on 1998-09-16
1
140 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

724 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