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!

Clipboard.SetDataObject

Status
Not open for further replies.

Mungovan

Programmer
Oct 24, 2002
94
IE
Hi,
I need to add various items to a single clipboard in a VB application. That is, I need to add a set text like say "Height" then a tabbed space, then the value stored in say textBox1. Then I need to add the value stored in textBox2 etc.

So, I need something that works like:?

Clipboard.SetDataObject("Height",tab,textBox1,"Lenght",tabtextBox2)

Or something like that, I just don't know how it works???
Do I even use the Clipboard.SetDataObject function at all?

Any ideas?
Thanks,
D
 
Use clipboard.SetText and the '&' operator to concatenate strings:

clipboard.SetText("Height" & vbtab & TextBox1.Text)


________________________________________________________________
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