well i need to make it so it will replace RichTextBox1's selected text with: <ST>, where ST is the initially selected text, Thanks
Printable View
well i need to make it so it will replace RichTextBox1's selected text with: <ST>, where ST is the initially selected text, Thanks
The RichTextBox has a SelectedText property. You can get the current value of that property, edit it as required, then assign the new value back to the property.
o so RichTextBox1.SelectedText = "<" & RichTextBox1.SelectedText & ">" ?