Visible lines in richtextbox control

  • Thread starter Thread starter Juan Romero
  • Start date Start date
J

Juan Romero

Hey guys,

Does anyone know how to find out the visible lines in the richtextbox
control?

For example, let's say the control has 30 lines, but due to size it can only
display 10. The current lines being displayed (assuming first line to be 1)
is 10 to 19. How do I find this out programmatically?

Thanks!
 
Ken,
thanks for replying.

GetUpperBound will get me the size of the entire array of lines. What I
am looking for is the number of lines VISIBLE in the box.

Regards,
Juan Romero
(To e-mail me remove the underscores from my e-mail address.)
 
Back
Top