How paste text from clipboard to the cursor area in a textbox?
With code below we can change entire text of textbox :
radTextBox1.Text = Clipboard.GetText();
But what about pasting on cursor area?
How paste text from clipboard to the cursor area in a textbox?
With code below we can change entire text of textbox :
radTextBox1.Text = Clipboard.GetText();
But what about pasting on cursor area?
Try this:
radTextBox1.Paste(Clipboard.GetText());
Paste
inserts your new text at the current cursor position. If your textbox has highlighted text, Paste
will replace the hightlighted text with your new text. Here are the docs.