When in a textBox if the user uses Ctrl+X, Ctrl+C, Ctrl+V it cuts, copys or pastes automatically.
How can I let my Edit menu do the same?
Printable View
When in a textBox if the user uses Ctrl+X, Ctrl+C, Ctrl+V it cuts, copys or pastes automatically.
How can I let my Edit menu do the same?
You can set the containts of the clipboard through the Clipboard object.
If you just wan't to copy text, the containts of the clipboard can be set by clipboard.setText (or clipboard.setData for everything else) and if you wan't to paste text, the containts of the clipboard can be retrieved by clipboard.getText
You will ofcourse need to do the insertion or removal of the text yourself.
To do all that, take a look at this thread, just change RichTextBox to your regular Textbox.