Method to delete selected text in textBox control?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im writing a simple (yet useful) text editor in C# and I cant figure out how to implement the Delete menu function, which would do the same as pressing Del with some selected text. I see the control implements the Cut, Copy and Paste methods wich I have used already, but I want the menu to have at least the same options Notepad does, plus a few extra ones, so Delete cannot be missed. I have revised all methods supported by the textBox1 control, as well as textBox1.SelectedText but nothing does the same as hitting Del on the keyboard. Any help is much appreciated. Thanks!

View the full article
 
Back
Top