Button text different when running to when in IDE?

Visual c# Express - a project developed in beta2
Text in buttons in the IDE is fine but when running the text is not quite right - it's as if the kerning has changed.
So a button that says 'Test Comms' in the IDE says 'Test Comm' when running. Looks like every button on the form is affected.
Font is 8.25 pt Microsoft sans serif.

Labels are ok as are datagridviewcolumn headings - it is just buttons that seem to be affected. Used to be OK in beta 2

Any ideas?

Thanks
Steve

[764 byte] By [SteveJo] at [2007-12-17]
# 1
Is it a matter of the button size chopping of the last letter? I know many times the buttons in the IDE do not look the same as the compiled version due to styling.
edburdo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 2
Could be more than the last letter if it's a big button with a long description. It's not so easy to tell but it looks more like a kerning issue so (rough idea)
Comms becomes C o m m

I'm not changing any style attributes in the code so I'm not sure why the IDE should look different to the running instance.

Any suggestions on any attributes that might make a difference?

Cheers
Steve

SteveJo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 3
Update Slightly increasing the button size in the designer seems to fix things.

I just don't understand why it used to be ok in beta 2

Cheers
Steve

SteveJo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 4
Try adding the following in Main method:


Application.SetCompatibleTextRenderingDefault(false);

VS2005 RTM adds this by default to a new project but I think Beta 2 did not do that so if your project was created in Beta 2 you don't have this line.

MikeDanes at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 5

Having a look at another instance of this issue recently and your fix works perfectly - many thanks.

How can anyone know these things?

Cheers

Steve

SteveJo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...