How to change font properties of a control (e.g. label) at runtime

346 views Asked by At

I've got the need to change the font properties of the text in a Label and in an Item of a ListView during runtime. I thought it was easy, writing:

label1->font->Bold=true;

But its not possible, because 'Bold' has just got a get() but no set() method. Infact, the compiler doesn't accept it:

error C2039: 'set': its not a  member of 'System::Drawing::Font::Bold'

Is there any other possibility to influence the font of a text in a Label or Item of a ListView? And if Yes, which one is it?

Thanks 4 Your help

0

There are 0 answers