richtextbox question

E

Eps

I have a richtextbox and I want the user to be able to press a button
and have some specific text inserted in to the richtextbox at the
current position of the text cursor. I have been looking at the MSDN
docs for richtextbox but I can't seem to find the property or method
that will give me the position of the cursor.

Any help appreciated.

--
Eps

http://ukcomment.blogspot.com/

A UK political Blog
 
O

OHM \( Terry Burns \)

private void button1_Click(object sender, System.EventArgs e)

{

this.richTextBox1.SelectedText=" INSERT ME ";

}
 
O

OHM \( Terry Burns \)

Dont feel that ! We all miss the obvious from time to time, and I am no
exception, trust me !.

:)
 

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

Top