Resize a textbox at runtime

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
 
J

John B

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
 
A

avanti

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

Avanti
 

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

Top