Resize a textbox at runtime

  • Thread starter Thread starter avanti
  • Start date Start date
A

avanti

Hi,

I have a multiline textbox in my application. It starts out as a single
line textbox. I want it to increase in height to accomodate another
line at runtime if the user input exceeds it's width.

Can this be done?

I have set the multiline and wordwrap properties to be true.

Thanks,
Avanti
 
avanti said:
Hi,

I have a multiline textbox in my application. It starts out as a single
line textbox. I want it to increase in height to accomodate another
line at runtime if the user input exceeds it's width.

Can this be done?

I have set the multiline and wordwrap properties to be true.

Thanks,
Avanti
You cannot do it automatically.
You will have to monitor the input and resize based on that.

JB
 
Thanks John.
Do you have some samples that do this. I want to know how to resize
depending upon the input size.

Avanti
 
Back
Top