Changing Button Font (Size)

  • Thread starter Thread starter Peter Oliphant
  • Start date Start date
P

Peter Oliphant

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==]
 
Peter Oliphant said:
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==]
 
Thanx, Ben! :)

[==Peter==]

Ben Voigt said:
Peter Oliphant said:
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==]
 
Back
Top