Rich text Control - inserting text at current position

  • Thread starter Thread starter Mallikarjun Tuppad
  • Start date Start date
M

Mallikarjun Tuppad

Hi,

Is there any way I can insert text at current curser position - (not at the
begining or end)

Mallikarjun
 
Use:
string textToBeInserted = "Hello";
richTextBox1.Text =

richTextBox1.Text.Insert(richTextBox1.SelectionStart, /*default 0*/
textToBeInserted);

NOTE: This statement changes the font, colour etc of the richtextbox's text.



Thanks,

VijayaKrishna P.
 
Back
Top