Results 1 to 3 of 3

Thread: cut, copy, paste

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    Akureyri, Iceland
    Posts
    69

    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?

  2. #2
    AIS_DK
    Guest
    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.

  3. #3
    Matthew Gates
    Guest
    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
  •  



Click Here to Expand Forum to Full Width