469,636 Members | 1,555 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,636 developers. It's quick & easy.

Windows changing label's font??!?

Hi

I have a pretty basic windows application created in Visual Studio
2005 and VB.NET.

I set my Form's font to Arial 8.25pt, so when i added a label and a
button they automatically have a font of Arial and 8.25pt.

Great.

I run it, all is well.

I created an installer using InstallShield (I doubt this has anything
to do with the problem but you never know?)

It has been installed on about 20 machines over 20 different offices,
every machine runs Windows XP Pro. Everything looks fine on all
machines with the exception of 1

On this one machine, the font of the button and label is different, it
is slightly larger and looks like it may be bold. I'm sure it is still
Arial but i cannot be 100% sure on that.

As it is bigger, the label expands (autosize = true) and it expands to
the right, overlapping the textbox that is positioned to the right of
the label.

The button has a caption of "Upload" but on this one machine we just
see "Uploa" as the button is now not big enough to hold the whole word
"Upload"

I do not have access to this machine but i am in contact with someone
who does.

My first thought was that it was something they changed in desktop /
properties / appearances / advanced.

I went through every setting on my machine, changed the font and
increased the size.

Things like my menu (file edit view etc) all change, but no windows
appearance setting overrides button captions and label fonts.

I also checked the advanced display options, i increased the DPI to
125 (desktop - properties - settings - advanced) this increased the
size of my menu etc but again did not change the button or label.

the form has other controls like textboxes, a datagridview, etc, and
the font's of these all seem to be this new variant of the font.

Does anyone have any ideas as to what is changing the font appearance
on this machine?

Thanks in advance

Andrew Ames

Aug 8 '07 #1
6 2659
I went through every setting on my machine, changed the font and
increased the size.
Did you try changing the Font Size in the Appearance tab?
It might also be worth checking the display resolution, and that they have
the correct driver installed for their monitor.

It's always a good idea anyway, to allow plenty of extra space at the end of
text labels. You never know when you might be asked to translate the form
into German, then you'll need all the space that you can get.
Aug 8 '07 #2
Yeah i tried the font size too, sorry i forgot to mention that.

The resolution is the same as on my machine.

Monitor driver i am not sure about, i can ask them to check it.

The chances of needing to translate are slim as it's just a simple
application for a specific English company, but i agree I should just
increase the space and i should avoid any further issues.

Cheers

Ames

Aug 8 '07 #3
On Aug 8, 5:46 am, andrew.a...@thenbs.com wrote:
Yeah i tried the font size too, sorry i forgot to mention that.

The resolution is the same as on my machine.

Monitor driver i am not sure about, i can ask them to check it.

The chances of needing to translate are slim as it's just a simple
application for a specific English company, but i agree I should just
increase the space and i should avoid any further issues.

Cheers

Ames
You mentioned changing your DPI setting to 125. Did you try reducing
it to say 72 to see if that duplicates the problem?

Chris

Aug 8 '07 #4
I set it to 72 and that just made everything smaller (like the text
under icons on the desktop) so it did not duplicate the problem. It
also did not make the button caption or the label text any smaller. no
matter what i change the dpi to, it does not effect the controls on my
form that have the problem.

Thanks

Aug 8 '07 #5
That was something i thought of, but i just assumed they had the font
as the font i was using was Arial. It is quite possible they deleted
this font for some reason. This sounds like the most likely cause.
Thanks! I'll get them to check

Aug 9 '07 #6
Users do funny things sometimes and deleting a font by mistake is one of
them. I would go so far as to reinstall the Ariel font (if it is there) on
the chance that it is corrupt.
--
Terry
"an*********@thenbs.com" wrote:
That was something i thought of, but i just assumed they had the font
as the font i was using was Arial. It is quite possible they deleted
this font for some reason. This sounds like the most likely cause.
Thanks! I'll get them to check

Aug 9 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Haughton | last post: by
2 posts views Thread by Mike P | last post: by
10 posts views Thread by Sylvain Audet | last post: by
4 posts views Thread by Rod Gill | last post: by
4 posts views Thread by Siah | last post: by
4 posts views Thread by tshad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.