Guest User

Untitled

a guest
Jan 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. KeyBox.Text = ""
  3. NumberCage.Enabled = True
  4. If KeyBox.Text.Length < 25 Then
  5. Button1.Enabled = False
  6. Else
  7. If KeyBox.Text.Length > 25 Then
  8. Button1.Enabled = True
  9. End If
  10. End If
  11. End Sub
  12.  
  13. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  14. Clipboard.SetText(KeyBox.Text)
  15. Dim sClipboard As String = Clipboard.GetText
  16. If KeyBox.Text.Length < 25 Then
  17. Button2.Enabled = False
  18. Else
  19. If KeyBox.Text.Length > 25 Then
  20. Button2.Enabled = True
  21. End If
  22. End If
  23.  
  24. End Sub
Add Comment
Please, Sign In to add comment