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.
 

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

Back
Top