Copy-Paste Sample in Visual Basic 6
This is a copy paste sample in Visual Basic 6. It shows you how to use the clipboard object in VB6 to perform copy paste operations in your application. This is a very easy sample targeted to the beginners. It shows you the use of the clipboard object very simply and in a straightforward way avoiding the complexities related to this object. Of course, you can make a complex program using the Clipboard object to achieve something of a very high level.
The code for the above program is very simple and two command buttons are used in the program:
1: cmdCopy2: cmdPaste
First create the above design of your program in the form designer and then copy the below code into the code window of the vb.
The code for the above program is very simple and two command buttons are used in the program:
1: cmdCopy2: cmdPaste
First create the above design of your program in the form designer and then copy the below code into the code window of the vb.
Code:
Private Sub cmdCopy_Click()
Clipboard.SetText (txtCopy.Text)
End Sub
Private Sub cmdPaste_Click()
txtPaste.Text = Clipboard.GetText
End Sub
Thank You.
For any other program please comment in the comment box and get any program related to C,C++,VB6 or VB 2010.
No comments:
Post a Comment