   Inserting text at the caret position in C#
  I am wondering how do you insert text at the caret position of a richeditbox control in C# and then move the caret so i can insert more text etc. I am currently building a script edito and i want to acheive the effect like Macromedia Flashes Action script editor does were were you click it inserts the function there. Does anyone know how i can do this in C#? thnx in advance.   
  the richTextBox control has a method called Select() which takes an index of the text position and moves the caret to that position. There is also a method called getIndexFromCaret position (or something similar) which gets the current position of the carat.   