Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing control's font size when height of form changes
Message
De
09/07/2004 15:10:33
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00922579
Message ID:
00922657
Vues:
15
Can you give more details, or post code? How did you scale it? For example, did you map ranges of form sizes to go with certain font sizes?

Thanks,

Equiring Mind in Texas


>Well I'll answer myself :) You have to create a new font object and assign it to the control's font property.
>
>Einar
>>It appears that the font size of my control is read only. Here is what I would like to do: When the height of the form changes I want the font size of my button to change accordingly.
>>My button is anchored appropriately so that the size of the button changes when the form is resized, but how can I change the font size of the button when the form is resized.
>>I have added my code to the SizeChanged event of the button.
>>
>>Any ideas or suggestions are welcome.
>>Thanks,
>>Einar
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform