changing rows in a multiline textbox

C

carlor

Hi there,

I have a situation where I have a textbox that by default only displays 2
rows of text at a time (textbox.rows = 2). On a link button click, I am
supposed to expand the textbox to show all the data it contains but there are
a number of problems to work through:

- the text box is in a table and textbox's width is set to 100%
- a "line" of text could contain a <CR><LF> or could wrap around to the next
line
- the font characteristics may change depending on the client's preferences

So, somehow I need to calculate how many rows are required to display all of
the text without the need for scroll bars and then set the rows property to
that number.

Does anyone have an idea how to handle this? Has anyone done this before?

Thanks,

Carlo.
 

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

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,604
Members
47,223
Latest member
smithjens316

Latest Threads

Top