VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



COPY, CUT, PASTE Source code on how to do it EASY

by Travis Gerry (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (12 Votes)

This Code shows you how to copy, cut, and paste with only a few lines this is very easy to do. This is the CODE and not just some garbage like those other copy, paste, and cut. AND IT WORKS!!!

Assumes
You need to know the basics of Visual Basic Programing, and thats it

Rate COPY, CUT, PASTE Source code on how to do it EASY

' You need a menu with 3 options, cut, copy, paste. Make sure to name them
' mnucut, mnucopy, mnupaste. Or just make 3 buttons and change the code a bit.
' You need one text box, defualt name text1. And thats it.
Private Sub mnucopy_Click()
If Text1.SelText = "" Then
  Exit Sub
Else
  Clipboard.Clear
  Clipboard.SetText Text1.SelText
End If
End Sub
Private Sub mnucut_Click()
If Text1.SelText = "" Then
  Exit Sub
Else
  Clipboard.Clear
  Clipboard.SetText Text1.SelText
  Text1.SelText = ""
End If
End Sub
Private Sub mnupaste_Click()
Text1.SelText = Clipboard.GetText

End Sub

Download this snippet    Add to My Saved Code

COPY, CUT, PASTE Source code on how to do it EASY Comments

No comments have been posted about COPY, CUT, PASTE Source code on how to do it EASY. Why not be the first to post a comment about COPY, CUT, PASTE Source code on how to do it EASY.

Post your comment

Subject:
Message:
0/1000 characters