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]
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
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.