Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. Public Class Form1
  2.  
  3. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.  
  5.  
  6.  
  7. End Sub
  8.  
  9. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  10.  
  11. End Sub
  12.  
  13. Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
  14.  
  15. End Sub
  16.  
  17.  
  18. Private Sub resta_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  19.  
  20. End Sub
  21.  
  22. Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  23. Dim num1, num2 As Integer
  24. num1 = numero1.Text
  25. num2 = numero2.Text
  26. MsgBox(num1 + num2
  27. )
  28.  
  29.  
  30.  
  31.  
  32. End Sub
  33.  
  34. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  35. Dim num1, num2 As Integer
  36. num1 = numero1.Text
  37. num2 = numero2.Text
  38. MsgBox(num1 - num2
  39. )
  40.  
  41. End Sub
  42.  
  43. Private Sub btnmayor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmayor.Click
  44. Dim mayor As Boolean
  45. mayor = numero1.Text > numero2.Text
  46.  
  47. MsgBox(mayor)
  48.  
  49.  
  50.  
  51.  
  52. End Sub
  53.  
  54. Private Sub btndistinto_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndistinto.Click
  55. Dim distinto As Boolean
  56. distinto = numero1.Text <> numero2.Text
  57.  
  58. MsgBox(distinto)
  59.  
  60. End Sub
  61.  
  62. Private Sub btnmenor_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmenor.Click
  63. Dim menor As Boolean
  64. menor = numero1.Text < numero2.Text
  65.  
  66. MsgBox(menor)
  67.  
  68. End Sub
  69.  
  70. Private Sub btnigual_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnigual.Click
  71. Dim igual As Boolean
  72. igual = numero1.Text = numero2.Text
  73.  
  74. MsgBox(igual)
  75.  
  76. End Sub
  77. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement