Advertisement
Guest User

Untitled

a guest
May 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.51 KB | None | 0 0
  1. Public Class RegisterShort
  2.  
  3.     Public Function Btn4() As Integer
  4.         Return Convert.ToInt16(b4.Text)
  5.     End Function
  6.  
  7.     Public Function Btn3() As Integer
  8.         Return Convert.ToInt16(b3.Text)
  9.     End Function
  10.  
  11.     Public Function Btn2() As Integer
  12.         Return Convert.ToInt16(b2.Text)
  13.     End Function
  14.  
  15.     Public Function Btn1() As Integer
  16.         Return Convert.ToInt16(b1.Text)
  17.     End Function
  18.  
  19.     Public Function Btn0() As Integer
  20.         Return Convert.ToInt16(b0.Text)
  21.     End Function
  22.  
  23.  
  24.  
  25.     Private Sub b4_Click(sender As Object, e As EventArgs) Handles b4.Click
  26.         If b4.Text = 0 Then
  27.             b4.Text = 1
  28.         Else
  29.             b4.Text = 0
  30.         End If
  31.     End Sub
  32.  
  33.     Private Sub b3_Click(sender As Object, e As EventArgs) Handles b3.Click
  34.         If b3.Text = 0 Then
  35.             b3.Text = 1
  36.         Else
  37.             b3.Text = 0
  38.         End If
  39.     End Sub
  40.  
  41.     Private Sub b2_Click(sender As Object, e As EventArgs) Handles b2.Click
  42.         If b2.Text = 0 Then
  43.             b2.Text = 1
  44.         Else
  45.             b2.Text = 0
  46.         End If
  47.     End Sub
  48.  
  49.     Private Sub b1_Click(sender As Object, e As EventArgs) Handles b1.Click
  50.         If b1.Text = 0 Then
  51.             b1.Text = 1
  52.         Else
  53.             b1.Text = 0
  54.         End If
  55.     End Sub
  56.  
  57.     Private Sub b0_Click(sender As Object, e As EventArgs) Handles b0.Click
  58.         If b0.Text = 0 Then
  59.             b0.Text = 1
  60.         Else
  61.             b0.Text = 0
  62.         End If
  63.     End Sub
  64. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement