Limit size of Rich text box

  • Thread starter Thread starter James
  • Start date Start date
J

James

I am writing a prgram that adds text to a rtb. I would like to limit
the amount of test in the box to about 30 lines. Is there for the
program to count the number of lines and when it exceeds 30 delete a
line for each line added?
 
I am writing a prgram that adds text to a rtb. I would like to limit
the amount of test in the box to about 30 lines. Is there for the
program to count the number of lines and when it exceeds 30 delete a
line for each line added?


You'll have to implement that on your own. To do so, select the line using
the 'Select' method and set the 'SelectedText' property to 'String.Empty'
(or '""').
 
Back
Top