|
-
May 18th, 2001, 10:00 AM
#1
Thread Starter
Lively Member
cut, copy, paste
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?
-
May 18th, 2001, 10:06 AM
#2
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.
-
May 18th, 2001, 10:57 AM
#3
To do all that, take a look at this thread, just change RichTextBox to your regular Textbox.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|