Colour Problems

Posted on 2002-07-10
Last Modified: 2010-05-02
Hello Experts.
1.On a gray colour Form,I put a text box with gray
  When I run the program on another PC,I get the Form and
  the Text box with different gray stile.
  How can I fix it to be the same colour?
2.On my PC ,I write a text into a label with lgerian
  When I run the program on another PC,the fonts are not
  How can I fix this ?

Thank you.
Question by:HESUS
  • 3
  • 3
  • 2
  • +2
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7143755
1) you need to either assign fixed values or the same constants for the color, note that different system colors can be the same, but this is a setting in the system scheme management.

2) The SAME font needs to installed on the other PC.


Expert Comment

ID: 7143758
1.  Make sure that the colors you use for the Form and for the TextBox are indeed the same.  It may be that the Form is using vbButtonFace and you use a palette color for the TextBox.  vbBottonface is s system color and can ne changed by the user, palette colors are constant.

In the Form_Load event you can do this:

Text1.Backcolor = Form1.BackColor

2. If you use any font other than the ones which come with all Windows versions you will have to install that font on the target computer.  You can add the font to be installed to your setup package.

Hope it helps.

Expert Comment

ID: 7143801
Are the color settings on the other pc the same?  I mean in wondows system settings.. 256 colors vs true color 32 bit  for example.
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 7144129
To nichia thank you very much.
Problem 1 is solved i.e 'Text1.Backcolor = Form1.BackColor'.
How do I install new fonts? I have the fonts on my machine
Win98. The other machine is Win2000.

Thanks to all the other for the replies.
LVL 16

Expert Comment

ID: 7144166
1) Form and text box colors depends upon end user system configurations for system colors.
You could see this if you change button face color and  window color doing right click over Desktop, porperties and appearance tab.

2) As Angel already saids.


Accepted Solution

nichia earned 100 total points
ID: 7144227
When you create the setup package, manually add the fonts you want to install to the setup.  In your case, add alger.ttf and specify the $(Font) target directory.

Hope it helps.
LVL 16

Expert Comment

ID: 7144288
some fonts are not distributable.

Author Comment

ID: 7144386
To nichia.
I did what you offered,and when I check the fonts directory
in the Win2000 machine,I can see the fonts there.But when I run the program,the fonts are still different.
Any suggestions?
Many thanks.

Expert Comment

ID: 7144510

Author Comment

ID: 7145390
Thank you very much. You helped me a lot.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Title # Comments Views Activity
Saving history changes to sub form 4 48
MS Access Search and Replace Using VBA 6 84
Adding to a VBA? 6 78
Hide vba in gp 7 104
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

829 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