Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Public Class Form1
  2.  
  3. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  4.  
  5.  
  6. End Sub
  7.  
  8. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  9. Dim Button1loc As Point = Button1.Location
  10. Dim Button2loc As Point = Button2.Location
  11. If Button2.Text = "NO" Then
  12. Button2.Location = Button1loc
  13. Button1.Location = Button2loc
  14. End If
  15. If Button2.Text = "YES" Then
  16. Label1.Text = "Seeeeee you are a geek"
  17.  
  18. End If
  19. End Sub
  20.  
  21. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  22. Dim Button1loc As Point = Button1.Location
  23. Dim Button2loc As Point = Button2.Location
  24.  
  25. If Button1.Text = "NO" Then
  26. Button2.Location = Button1loc
  27. Button1.Location = Button2loc
  28. End If
  29. If Button1.Text = "YES" Then
  30. Label1.Text = "Seeeeee you are a geek"
  31.  
  32. End If
  33.  
  34.  
  35.  
  36.  
  37. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement