Results 1 to 2 of 2

Thread: Calling cut, copy and paste commands

  1. #1

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366

    Calling cut, copy and paste commands

    How can I call the cut, copy and paste commands?

    I have a right-click menu where I have these options, but how do I actually call these commands?

    Thanks

  2. #2
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    In the Cut menu, use:
    VB Code:
    1. Clipboard.SetDataObject(Me.Text1.SelectedText, False)
    2. Me.Text1.SelectedText.Remove(me.Text1.SelectionStart,me.Text1.SelectionLength)
    n the Copy menu, use:
    VB Code:
    1. Clipboard.SetDataObject(Me.Text1.SelectedText, False)
    and in the past menu use:
    VB Code:
    1. Me.Text1.Text = Convert.ToString(Clipboard.GetDataObject)

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