Autoresizing Label

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

How might I make a label automatically resize to fit the text inside it?
I don't see a property for it, is there a way I can figure out the text
size for myself?

Thanks,
Steve
 
Hi,

You can create your own Label class inherits from Label. Then in the
"TextChanged" event, you can call the Graphics.MeasureString method in
order to measure your string and resize your label.

BR


Fabien Decret
C# MCP
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



Steve a écrit :
 
Back
Top