Thread: Clipboard
View Single Post
  #1 (permalink)  
Old 08-16-2007, 06:47 AM
brucem brucem is offline
Newbie
 
Join Date: Jul 2007
Posts: 2
Default Clipboard

Can anyone see what is wrong.
I have done a short program that should paste texbox1.text into textbox2.text (if i am understanding things right).
When button1 is clicked textbox2 goes blank (no text). The text in textbox1 is "textbox1", shouldn't that be copied?

Sub Globals
'Declare the global variables here.
End Sub

Sub App_Start
Form1.Show
hw.new1 'hw is a Hardware object.
End Sub


Sub Button1_Click
hw.SetClipboardData(textbox1.Text)
textbox2.Text=hw.GetClipboardData
End Sub
Reply With Quote