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 '""').
 

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

Back
Top