473,392 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,392 software developers and data experts.

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 2836
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
7
by: Ed West | last post by:
Hello, I have a simple form with some input boxes. After validation if one fails, then I would like to at the top of the page say something like "The following fields in red are required" and...
1
by: Venki | last post by:
I have a textbox to enter an email address followed by a telephone textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
2
by: Mike P | last post by:
Is it possible to change the forecolor of a Span programmatically? Cheers, Mike *** Sent via Developersdex http://www.developersdex.com ***
10
by: Sylvain Audet | last post by:
Hello! We have a Windows application that is using Crystal Reports reports containing Barcode fonts. Those reports are called through reflection into a Crystal Report Viewer and we need to have...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: Siah | last post by:
Hi, I wanted to dynamically update pieces of my page in the following fashion. Look at the following html code: <span id='person_23_name'> Mike </span> <span id='person_28_name'> Siah </span>...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
1
by: Randy | last post by:
I've got an ASP VS 2005 project. I'm trying to figure out how to programmatically change the font of a label. From memory, this was done easily in 2003, but the Font property is read-only. Can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.