Solved

Colour Problems

Posted on 2002-07-10
10
199 Views
Last Modified: 2010-05-02
Hello Experts.
1.On a gray colour Form,I put a text box with gray
  background.
  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
  fonts.
  When I run the program on another PC,the fonts are not
  Algerian.
  How can I fix this ?

Thank you.
0
Comment
Question by:HESUS
[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
  • 3
  • 3
  • 2
  • +2
10 Comments
 
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.

CHeers
0
 
LVL 3

Expert Comment

by:nichia
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.
0
 
LVL 2

Expert Comment

by:mmcmillen
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:HESUS
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.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
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.

0
 
LVL 3

Accepted Solution

by:
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.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7144288
some fonts are not distributable.
0
 

Author Comment

by:HESUS
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.
0
 
LVL 3

Expert Comment

by:nichia
ID: 7144510
Reboot.
0
 

Author Comment

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

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses
Course of the Month6 days, 1 hour left to enroll

627 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