Hi, I'm working with Visual Studio C# 2008 Express and I'm having the
hardest time trying to get an 8.25f Microsoft Sans Serif font in a
70x18 pixel (width x height) FlatStyle.Popup button. The text just
won't center to fit inside the button. The font gets chopped off at
the bottom (because it doesn't want to perfectly center itself).

Can someone else out there just try this to see what I mean? There's
plenty of room in that button to fit that size text and it would save
a lot of space in my app as I need several columns of these size
buttons.

It's just a Windows Forms App compiling to whatever Framework version
Express defaults to (the latest, I presume).

Thanks for the help!

Re: How to get text to fit inside a button by rhaazy

rhaazy
Tue Jul 15 14:48:25 CDT 2008

On Jul 14, 6:32=A0pm, Steve_H <stephen.h...@gmail.com> wrote:
> Hi, I'm working with Visual Studio C# 2008 Express and I'm having the
> hardest time trying to get an 8.25f Microsoft Sans Serif font in a
> 70x18 pixel (width x height) FlatStyle.Popup button. =A0The text just
> won't center to fit inside the button. =A0The font gets chopped off at
> the bottom (because it doesn't want to perfectly center itself).
>
> Can someone else out there just try this to see what I mean? =A0 There's
> plenty of room in that button to fit that size text and it would save
> a lot of space in my app as I need several columns of these size
> buttons.
>
> It's just a Windows Forms App compiling to whatever Framework version
> Express defaults to (the latest, I presume).
>
> Thanks for the help!

change the size of your button.

Re: How to get text to fit inside a button by Fernando

Fernando
Tue Aug 12 00:16:34 CDT 2008

Did you set the AutoSize property? The button will have the right dimensions
for the text .
As for the opposite i dont know, maybe selecting a smaller font.

bye.
Fernando

"Steve_H" <stephen.hite@gmail.com> escreveu na mensagem
news:352778c7-2c23-4261-bfe5-155d196b769d@i76g2000hsf.googlegroups.com...
>
> Hi, I'm working with Visual Studio C# 2008 Express and I'm having the
> hardest time trying to get an 8.25f Microsoft Sans Serif font in a
> 70x18 pixel (width x height) FlatStyle.Popup button. The text just
> won't center to fit inside the button. The font gets chopped off at
> the bottom (because it doesn't want to perfectly center itself).
>
> Can someone else out there just try this to see what I mean? There's
> plenty of room in that button to fit that size text and it would save
> a lot of space in my app as I need several columns of these size
> buttons.
>
> It's just a Windows Forms App compiling to whatever Framework version
> Express defaults to (the latest, I presume).
>
> Thanks for the help!