472,119 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 3100

"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
reply views Thread by leo001 | last post: by

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.