Windows Forms, change font of the controls at runtime?


I

Iwan Petrow

Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.
 
Ad

Advertisements

I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Of course you have to recalculate the size needed for the controls.


cheers,
 
Ad

Advertisements

I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

As a side note you could also need to relocate them, btw it's not an easy
task !


cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top