HOW TO COPY AND PASTE TO AND FROM THE WINDOWS CLIPBPOARD USING VISUAL BASIC
2008 (VB 2008)
DESCRIPTION
This Visual Basic 2008 code is a simple source code example of how to copy and
paste to and from the windows clipboard using Visual
Basic 2008 (VB2008).
|
THE VB 2008 SETUP
None Required
|
THE FREE VISUAL BASIC 2008 SOURCE CODE
Copy and Paste this code wherever you need it:
'.....Free VB2008 Source Code from www.freevisualbasic2008sourcecode.com
Main Form Code For Copying to the Windows Clipboard
'Add a TextBox1 to your Form1 for user input
'Add a button to your form, double click the button and then add the following
copy function when the button is
pressed.
Clipboard.Clear()
Clipboard.SetText(TextBox1.Text)
Main Form Code For Pasting from the Windows Clipboard
'Add a TextBox2 to your Form1 for user input
'Add a button to your form, double click the button and then add the following
paste function when the button is
pressed.
TextBox2.Text = Clipboard.GetText
|
|