power point style textbox

  • Thread starter Thread starter VJ
  • Start date Start date
I am trying to give more details. I basically want my textbox to adjust
height and width as the user types or changes font styles.. more close to
how it is implemented in power point

Also setting the property to Autosize why does not that work?

VJ
 
You cannot make textbox do this automatically. Instead subscribe an event to
TextChanged event and use Graphics.MeasureString() to determine the best
dimensions for the textbox.
 
AutoSise works dear. But it only adjusts the 'Width' of the control to
accomodate the size of the font selected.
 
Back
Top