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
Printable View
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
In the Cut menu, use:
n the Copy menu, use:VB Code:
Clipboard.SetDataObject(Me.Text1.SelectedText, False) Me.Text1.SelectedText.Remove(me.Text1.SelectionStart,me.Text1.SelectionLength)
and in the past menu use:VB Code:
Clipboard.SetDataObject(Me.Text1.SelectedText, False)
VB Code:
Me.Text1.Text = Convert.ToString(Clipboard.GetDataObject)