Richtextbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

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

Thanks in advance

Luis
 
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
 
Hello, Luis,

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

Cheers,
Randy
 
Back
Top