Many programmers use Visual Basic’s Clipboard object to perform Cutting, Copying, Pasting and Undoing code. For example, to copy some text from a textbox, programmers sometimes use the following code:
Clipboard.SetText frm.ActiveControl.SelText frm.ActiveControl.SelText =