469,625 Members | 1,094 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Changing Button Font (Size)

I can read the Font^ of a Button(->Font). But how do I change the Font of a
Button, or at least it's size?

I'm programming using MS VC++ 2005 Express in /clr managed mode.

Thanks!

[==Peter==]

Oct 4 '07 #1
2 3042

"Peter Oliphant" <pe********@hotmail.comwrote in message
news:FC**********************************@microsof t.com...
>I can read the Font^ of a Button(->Font). But how do I change the Font of a
Button, or at least it's size?
Button^ button1;
....

button1->Font = gcnew Font("Arial", 12, GraphicsUnit::Point);
>
I'm programming using MS VC++ 2005 Express in /clr managed mode.

Thanks!

[==Peter==]

Oct 5 '07 #2
Thanx, Ben! :)

[==Peter==]

"Ben Voigt [C++ MVP]" <rb*@nospam.nospamwrote in message
news:ul**************@TK2MSFTNGP05.phx.gbl...
>
"Peter Oliphant" <pe********@hotmail.comwrote in message
news:FC**********************************@microsof t.com...
>>I can read the Font^ of a Button(->Font). But how do I change the Font of
a Button, or at least it's size?

Button^ button1;
...

button1->Font = gcnew Font("Arial", 12, GraphicsUnit::Point);
>>
I'm programming using MS VC++ 2005 Express in /clr managed mode.

Thanks!

[==Peter==]

Oct 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Cengiz Ulku | last post: by
6 posts views Thread by Skip Hollowell | last post: by
4 posts views Thread by Arif Çimen | last post: by
1 post views Thread by Blasting Cap | last post: by
6 posts views Thread by andrew.ames | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.