Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emulate copy and paste

Status
Not open for further replies.

mackey333

Technical User
May 10, 2001
563
US
Is there a way in vb to copy the contents of a textbox to the clipboard and alse paste the contents of the clipboard into a text box. I don't need to full code, just how to send a variable to the clipboard and how to send the contents of the clipboard to a variable -Greg :-Q

flaga.gif
 
You can find full details of the Clipboard object in VBHelp, but the basic statements for text are:

Clipboard.Clear
Clipboard.SetText strToCopy
strToPaste = Clipboard.GetText
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top