The demo actually places some text data on the Clipboard in Sub bCopy_Click. Basically you just stick the object on the Clipboard and it works out what it is.
Agraham, Yesterday at 4:36 PM
>The demo actually places some text data on the Clipboard in Sub bCopy_Click. Basically you just >stick the object on the Clipboard and it works out what it is.
Thanks Agraham for your response but I'm somewhat perplexed.
>The demo actually places some text data on the Clipboard in Sub bCopy_Click. ???
I can't see any Sub bCopy_Click in the demo code.
>Basically you just stick the object on the Clipboard and it works out what it is. ???
How do I stick the object on the clipboard that needs to be text from a text variable?
Can you give me program code lines to do this?
This what my original post asked for?
Can Anyone Else provide the program code?
My simple test program code runs only once. Form “form1” will need to be created with a control for “TextBox1” installed. The Cliboard.ddl has been installed for both device and desk top.
When run on the PC the contents of what ever has been selected and put on the clipboard is placed in into the string variable “stuff” which is then put into TextBox1. Lines 8 & 9.
This is working.
Now can anyone provide the line of code or lines of code needed for the Clipboard Library (not the hardware library) to put the text content of a string variable such as the variable “clip” shown in my example into the clipboard?
MY EXAMPLE:
Sub Globals
Form1.Show 'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
cb.New1
stuff=cb.GetData("Text")
TextBox1.Text=stuff
'''''''''''''''''''''''''''''''''''''''''
'This piece of my test program needs to have code added for placing text into the clipboard.
clip="This text needs to be placed on the clipboard for pasting into a Notepad OR other text editor"
'Can anyone provide the line or lines of code needed to put clip variable's text_
'into the Clipboard?
'''''''''''''''''''''''''''''''''''''''''
End Sub