Hello everybody,
I'm trying to insert some text into a KryptonRichTextBox.
How do I get the current cursor position?
And how do I insert somt text at the current cursor position?
Any help is very much appreciated.
Cheers,
Bernd
Moderators: Phil Wright, Chris Porter
int currentPos = emailBodyBox.SelectionStart;
emailBodyBox.Text = emailBodyBox.Text.Insert(emailBodyBox.SelectionStart, placeholder);
emailBodyBox.SelectionStart = currentPos + placeholder.Length;
Users browsing this forum: No registered users and 3 guests