newbie: RichtextBox

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

Guest

Hi,

just one question: I placed some code in my RichTextBox's keyPress handler
(VB.net), and now I want to know at which current position (index) in my
RichTextBox.Text the new char would be inserted. Can anyone help?

Thanks
Peter
 
RichTextBox1.SelectionStart + 1

will give you the index

Ramesh Krishnamoorthy
 

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