Richtextbox

G

Guest

Hello,

Is there any way of resize the height of a richtextbox to fit all is content?

Thanks in advance

Luis
 
R

rowe_newsgroups

Hello,

Is there any way of resize the height of a richtextbox to fit all is content?

Thanks in advance

Luis

My first guess would be to count the number of lines (rtb.Lines.Count
IIRC) and then figure out the multiplier based on that number. For
example, if a line was 20 pixels tall and you had 8 lines, you would
set the height equal to 160 (8 * 20)

Thanks,

Seth Rowe
 
G

Guest

Hello, Luis,

Have a look at the ContentsResized event. I think that it will give you
what you want.

Cheers,
Randy
 

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