Here is my code:
Public Class Form1
Dim SQ1(9, 9) As Integer
Dim Buttonvalue As Integer
Dim butnum(9, 9) As Integer
Dim temp As Integer
Dim T As Integer
Private Sub testbut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles testbut.Click
If Button1.Text = "1" And Button2.Text = "2" And Button3.Text = "3" And Button4.Text = "4" And Button5.Text = "5" And Button6.Text = "6" And Button7.Text = "7" And Button8.Text = "8" And Button9.Text = "9" Then
MsgBox("You Won!")
Else
MsgBox("Something's not right.")
End If
End Sub
Private Sub resetbut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles resetbut.Click
T = 0
Label1.Text = "Time: " & T
butnum(1, 1) = 0
Button1.Text = ""
butnum(1, 2) = 0
Button2.Text = ""
butnum(1, 3) = 0
Button3.Text = ""
butnum(2, 1) = 0
Button4.Text = ""
butnum(2, 2) = 0
Button5.Text = ""
butnum(2, 3) = 0
Button6.Text = ""
butnum(3, 1) = 0
Button7.Text = ""
butnum(3, 2) = 0
Button8.Text = ""
butnum(3, 3) = 0
Button9.Text = ""
butnum(4, 1) = 0
Button10.Text = ""
butnum(4, 2) = 0
Button11.Text = ""
butnum(4, 3) = 0
Button12.Text = ""
butnum(5, 1) = 0
Button13.Text = ""
butnum(5, 2) = 0
Button14.Text = ""
butnum(5, 3) = 0
Button15.Text = ""
butnum(6, 1) = 0
Button16.Text = ""
butnum(6, 2) = 0
Button17.Text = ""
butnum(6, 3) = 0
Button18.Text = ""
butnum(7, 1) = 0
Button19.Text = ""
butnum(7, 2) = 0
Button20.Text = ""
butnum(7, 3) = 0
Button21.Text = ""
butnum(8, 1) = 0
Button22.Text = ""
butnum(8, 2) = 0
Button23.Text = ""
butnum(8, 3) = 0
Button24.Text = ""
butnum(9, 1) = 0
Button25.Text = ""
butnum(9, 2) = 0
Button26.Text = ""
butnum(9, 3) = 0
Button27.Text = ""
butnum(1, 4) = 0
Button28.Text = ""
butnum(1, 5) = 0
Button29.Text = ""
butnum(1, 6) = 0
Button30.Text = ""
butnum(2, 4) = 0
Button31.Text = ""
butnum(2, 5) = 0
Button32.Text = ""
butnum(2, 6) = 0
Button33.Text = ""
butnum(3, 4) = 0
Button34.Text = ""
butnum(3, 5) = 0
Button35.Text = ""
butnum(3, 6) = 0
Button36.Text = ""
butnum(4, 4) = 0
Button37.Text = ""
butnum(4, 5) = 0
Button38.Text = ""
butnum(4, 6) = 0
Button39.Text = ""
butnum(5, 4) = 0
Button40.Text = ""
butnum(5, 5) = 0
Button41.Text = ""
butnum(5, 6) = 0
Button42.Text = ""
butnum(6, 4) = 0
Button43.Text = ""
butnum(6, 5) = 0
Button44.Text = ""
butnum(6, 6) = 0
Button45.Text = ""
butnum(7, 4) = 0
Button46.Text = ""
butnum(7, 5) = 0
Button47.Text = ""
butnum(7, 6) = 0
Button48.Text = ""
butnum(8, 4) = 0
Button49.Text = ""
butnum(8, 5) = 0
Button50.Text = ""
butnum(8, 6) = 0
Button51.Text = ""
butnum(9, 4) = 0
Button52.Text = ""
butnum(9, 5) = 0
Button53.Text = ""
butnum(9, 6) = 0
Button54.Text = ""
butnum(1, 7) = 0
Button55.Text = ""
butnum(1, 8) = 0
Button56.Text = ""
butnum(1, 9) = 0
Button57.Text = ""
butnum(2, 7) = 0
Button58.Text = ""
butnum(2, 8) = 0
Button59.Text = ""
butnum(2, 9) = 0
Button60.Text = ""
butnum(3, 7) = 0
Button61.Text = ""
butnum(3, 8) = 0
Button62.Text = ""
butnum(3, 9) = 0
Button63.Text = ""
butnum(4, 7) = 0
Button64.Text = ""
butnum(4, 8) = 0
Button65.Text = ""
butnum(4, 9) = 0
Button66.Text = ""
butnum(5, 7) = 0
Button67.Text = ""
butnum(5, 8) = 0
Button68.Text = ""
butnum(5, 9) = 0
Button69.Text = ""
butnum(6, 7) = 0
Button70.Text = ""
butnum(6, 8) = 0
Button71.Text = ""
butnum(6, 9) = 0
Button72.Text = ""
butnum(7, 7) = 0
Button73.Text = ""
butnum(7, 8) = 0
Button74.Text = ""
butnum(7, 9) = 0
Button75.Text = ""
butnum(8, 7) = 0
Button76.Text = ""
butnum(8, 8) = 0
Button77.Text = ""
butnum(8, 9) = 0
Button78.Text = ""
butnum(9, 7) = 0
Button79.Text = ""
butnum(9, 8) = 0
Button80.Text = ""
butnum(9, 9) = 0
End Sub
'Below is the Time Label: It shows the time
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
T = T + 1
Label1.Text = "Time: " & T
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
Label1.Text = "Time: 0"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
temp = butnum(1, 1) + 1
butnum(1, 1) = temp
Button1.Text = butnum(1, 1)
If butnum(1, 1) > 9 Then butnum(1, 1) = 0
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
temp = butnum(1, 2) + 1
butnum(1, 2) = temp
Button2.Text = butnum(1, 2)
If butnum(1, 2) > 9 Then butnum(1, 2) = 0
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
temp = butnum(1, 3) + 1
butnum(1, 3) = temp
Button3.Text = butnum(1, 3)
If butnum(1, 3) > 9 Then butnum(1, 3) = 0
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
temp = butnum(2, 1) + 1
butnum(2, 1) = temp
Button4.Text = butnum(2, 1)
If butnum(2, 1) > 9 Then butnum(2, 1) = 0
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
temp = butnum(2, 2) + 1
butnum(2, 2) = temp
Button5.Text = butnum(2, 2)
If butnum(2, 2) > 9 Then butnum(2, 2) = 0
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
temp = butnum(2, 3) + 1
butnum(2, 3) = temp
Button6.Text = butnum(2, 3)
If butnum(2, 3) > 9 Then butnum(2, 3) = 0
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
temp = butnum(3, 1) + 1
butnum(3, 1) = temp
Button7.Text = butnum(3, 1)
If butnum(3, 1) > 9 Then butnum(3, 1) = 0
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
temp = butnum(3, 2) + 1
butnum(3, 2) = temp
Button8.Text = butnum(3, 2)
If butnum(3, 2) > 9 Then butnum(3, 2) = 0
End Sub
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
temp = butnum(3, 3) + 1
butnum(3, 3) = temp
Button9.Text = butnum(3, 3)
If butnum(3, 3) > 9 Then butnum(3, 3) = 0
End Sub
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
temp = butnum(4, 1) + 1
butnum(4, 1) = temp
Button10.Text = butnum(4, 1)
If butnum(4, 1) > 9 Then butnum(4, 1) = 0
End Sub
Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
temp = butnum(4, 2) + 1
butnum(4, 2) = temp
Button11.Text = butnum(4, 2)
If butnum(4, 2) > 9 Then butnum(4, 2) = 0
End Sub
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
temp = butnum(4, 3) + 1
butnum(4, 3) = temp
Button12.Text = butnum(4, 3)
If butnum(4, 3) > 9 Then butnum(4, 3) = 0
End Sub
Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
temp = butnum(5, 1) + 1
butnum(5, 1) = temp
Button13.Text = butnum(5, 1)
If butnum(5, 1) > 9 Then butnum(5, 1) = 0
End Sub
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click
temp = butnum(5, 2) + 1
butnum(5, 2) = temp
Button14.Text = butnum(5, 2)
If butnum(5, 2) > 9 Then butnum(5, 2) = 0
End Sub
Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click
temp = butnum(5, 3) + 1
butnum(5, 3) = temp
Button15.Text = butnum(5, 3)
If butnum(5, 3) > 9 Then butnum(5, 3) = 0
End Sub
Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click
temp = butnum(6, 1) + 1
butnum(6, 1) = temp
Button16.Text = butnum(3, 1)
If butnum(6, 1) > 9 Then butnum(6, 1) = 0
End Sub
Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click
temp = butnum(6, 2) + 1
butnum(6, 2) = temp
Button17.Text = butnum(6, 2)
If butnum(6, 2) > 9 Then butnum(6, 2) = 0
End Sub
Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
temp = butnum(6, 3) + 1
butnum(6, 3) = temp
Button18.Text = butnum(6, 3)
If butnum(6, 3) > 9 Then butnum(6, 3) = 0
End Sub
Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click
temp = butnum(7, 1) + 1
butnum(7, 1) = temp
Button19.Text = butnum(7, 1)
If butnum(7, 1) > 9 Then butnum(7, 1) = 0
End Sub
Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
temp = butnum(7, 2) + 1
butnum(7, 2) = temp
Button20.Text = butnum(7, 2)
If butnum(7, 2) > 9 Then butnum(7, 2) = 0
End Sub
Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click
temp = butnum(7, 3) + 1
butnum(7, 3) = temp
Button21.Text = butnum(7, 3)
If butnum(7, 3) > 9 Then butnum(7, 3) = 0
End Sub
Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click
temp = butnum(8, 1) + 1
butnum(8, 1) = temp
Button22.Text = butnum(8, 1)
If butnum(8, 1) > 9 Then butnum(8, 1) = 0
End Sub
Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click
temp = butnum(8, 2) + 1
butnum(8, 2) = temp
Button23.Text = butnum(8, 2)
If butnum(8, 2) > 9 Then butnum(8, 2) = 0
End Sub
Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.Click
temp = butnum(8, 3) + 1
butnum(8, 3) = temp
Button24.Text = butnum(8, 3)
If butnum(8, 3) > 9 Then butnum(8, 3) = 0
End Sub
Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click
temp = butnum(9, 1) + 1
butnum(9, 1) = temp
Button25.Text = butnum(9, 1)
If butnum(9, 1) > 9 Then butnum(9, 1) = 0
End Sub
Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click
temp = butnum(9, 2) + 1
butnum(9, 2) = temp
Button26.Text = butnum(9, 2)
If butnum(9, 2) > 9 Then butnum(9, 2) = 0
End Sub
Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click
temp = butnum(9, 3) + 1
butnum(9, 3) = temp
Button27.Text = butnum(9, 3)
If butnum(9, 3) > 9 Then butnum(9, 3) = 0
End Sub
Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click
temp = butnum(1, 4) + 1
butnum(1, 4) = temp
Button28.Text = butnum(1, 4)
If butnum(1, 4) > 9 Then butnum(1, 4) = 0
End Sub
Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button29.Click
temp = butnum(1, 5) + 1
butnum(1, 5) = temp
Button29.Text = butnum(1, 5)
If butnum(1, 5) > 9 Then butnum(1, 5) = 0
End Sub
Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button30.Click
temp = butnum(1, 6) + 1
butnum(1, 6) = temp
Button30.Text = butnum(1, 6)
If butnum(1, 6) > 9 Then butnum(1, 6) = 0
End Sub
Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button31.Click
temp = butnum(2, 4) + 1
butnum(2, 4) = temp
Button31.Text = butnum(3, 3)
If butnum(2, 4) > 9 Then butnum(2, 4) = 0
End Sub
Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button32.Click
temp = butnum(2, 5) + 1
butnum(2, 5) = temp
Button32.Text = butnum(2, 5)
If butnum(2, 5) > 9 Then butnum(2, 5) = 0
End Sub
Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button33.Click
temp = butnum(2, 6) + 1
butnum(2, 6) = temp
Button33.Text = butnum(2, 6)
If butnum(2, 6) > 9 Then butnum(2, 6) = 0
End Sub
Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button34.Click
temp = butnum(3, 4) + 1
butnum(3, 4) = temp
Button34.Text = butnum(3, 4)
If butnum(3, 4) > 9 Then butnum(3, 4) = 0
End Sub
Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button35.Click
temp = butnum(3, 5) + 1
butnum(3, 5) = temp
Button35.Text = butnum(3, 5)
If butnum(3, 5) > 9 Then butnum(3, 5) = 0
End Sub
Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button36.Click
temp = butnum(3, 6) + 1
butnum(3, 6) = temp
Button36.Text = butnum(3, 6)
If butnum(3, 6) > 9 Then butnum(3, 6) = 0
End Sub
Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click
temp = butnum(4, 4) + 1
butnum(4, 4) = temp
Button37.Text = butnum(4, 4)
If butnum(4, 4) > 9 Then butnum(4, 4) = 0
End Sub
Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click
temp = butnum(4, 5) + 1
butnum(4, 5) = temp
Button38.Text = butnum(4, 5)
If butnum(4, 5) > 9 Then butnum(4, 5) = 0
End Sub
Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button39.Click
temp = butnum(4, 6) + 1
butnum(4, 6) = temp
Button39.Text = butnum(4, 6)
If butnum(4, 6) > 9 Then butnum(4, 6) = 0
End Sub
Private Sub Button40_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button40.Click
temp = butnum(5, 4) + 1
butnum(5, 4) = temp
Button40.Text = butnum(5, 4)
If butnum(5, 4) > 9 Then butnum(5, 4) = 0
End Sub
Private Sub Button41_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button41.Click
temp = butnum(5, 5) + 1
butnum(5, 5) = temp
Button41.Text = butnum(5, 5)
If butnum(5, 5) > 9 Then butnum(5, 5) = 0
End Sub
Private Sub Button42_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button42.Click
temp = butnum(5, 6) + 1
butnum(5, 6) = temp
Button42.Text = butnum(5, 6)
If butnum(5, 6) > 9 Then butnum(5, 6) = 0
End Sub
Private Sub Button43_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button43.Click
temp = butnum(6, 4) + 1
butnum(6, 4) = temp
Button43.Text = butnum(6, 4)
If butnum(6, 4) > 9 Then butnum(6, 4) = 0
End Sub
Private Sub Button44_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button44.Click
temp = butnum(6, 5) + 1
butnum(6, 5) = temp
Button44.Text = butnum(6, 5)
If butnum(6, 5) > 9 Then butnum(6, 5) = 0
End Sub
Private Sub Button45_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button45.Click
temp = butnum(6, 6) + 1
butnum(6, 6) = temp
Button45.Text = butnum(6, 6)
If butnum(6, 6) > 9 Then butnum(6, 6) = 0
End Sub
Private Sub Button46_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button46.Click
temp = butnum(7, 4) + 1
butnum(7, 4) = temp
Button46.Text = butnum(7, 4)
If butnum(7, 4) > 9 Then butnum(7, 4) = 0
End Sub
Private Sub Button47_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button47.Click
temp = butnum(7, 5) + 1
butnum(7, 5) = temp
Button47.Text = butnum(7, 5)
If butnum(7, 5) > 9 Then butnum(7, 5) = 0
End Sub
Private Sub Button48_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button48.Click
temp = butnum(7, 6) + 1
butnum(7, 6) = temp
Button48.Text = butnum(7, 6)
If butnum(7, 6) > 9 Then butnum(7, 6) = 0
End Sub
Private Sub Button49_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button49.Click
temp = butnum(8, 4) + 1
butnum(8, 4) = temp
Button49.Text = butnum(8, 4)
If butnum(8, 4) > 9 Then butnum(8, 4) = 0
End Sub
Private Sub Button50_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button50.Click
temp = butnum(8, 5) + 1
butnum(8, 5) = temp
Button50.Text = butnum(8, 5)
If butnum(8, 5) > 9 Then butnum(8, 5) = 0
End Sub
Private Sub Button51_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button51.Click
temp = butnum(8, 6) + 1
butnum(8, 6) = temp
Button51.Text = butnum(8, 6)
If butnum(8, 6) > 9 Then butnum(8, 6) = 0
End Sub
Private Sub Button52_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button52.Click
temp = butnum(9, 4) + 1
butnum(9, 4) = temp
Button52.Text = butnum(9, 4)
If butnum(9, 4) > 9 Then butnum(9, 4) = 0
End Sub
Private Sub Button53_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button53.Click
temp = butnum(9, 5) + 1
butnum(9, 5) = temp
Button53.Text = butnum(9, 5)
If butnum(9, 5) > 9 Then butnum(9, 5) = 0
End Sub
Private Sub Button54_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button54.Click
temp = butnum(9, 6) + 1
butnum(9, 6) = temp
Button54.Text = butnum(9, 6)
If butnum(9, 6) > 9 Then butnum(9, 6) = 0
End Sub
Private Sub Button55_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button55.Click
temp = butnum(1, 7) + 1
butnum(1, 7) = temp
Button55.Text = butnum(1, 7)
If butnum(1, 7) > 9 Then butnum(1, 7) = 0
End Sub
Private Sub Button56_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button56.Click
temp = butnum(1, 8) + 1
butnum(1, 8) = temp
Button56.Text = butnum(1, 8)
If butnum(1, 8) > 9 Then butnum(1, 8) = 0
End Sub
Private Sub Button57_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button57.Click
temp = butnum(1, 9) + 1
butnum(1, 9) = temp
Button57.Text = butnum(1, 9)
If butnum(1, 9) > 9 Then butnum(1, 9) = 0
End Sub
Private Sub Button58_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button58.Click
temp = butnum(2, 7) + 1
butnum(2, 7) = temp
Button58.Text = butnum(2, 7)
If butnum(2, 7) > 9 Then butnum(2, 7) = 0
End Sub
Private Sub Button59_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button59.Click
temp = butnum(2, 8) + 1
butnum(2, 8) = temp
Button59.Text = butnum(2, 8)
If butnum(2, 8) > 9 Then butnum(2, 8) = 0
End Sub
Private Sub Button60_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button60.Click
temp = butnum(2, 9) + 1
butnum(2, 9) = temp
Button60.Text = butnum(2, 9)
If butnum(2, 9) > 9 Then butnum(2, 9) = 0
End Sub
Private Sub Button61_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button61.Click
temp = butnum(3, 7) + 1
butnum(3, 7) = temp
Button61.Text = butnum(3, 7)
If butnum(3, 7) > 9 Then butnum(3, 7) = 0
End Sub
Private Sub Button62_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button62.Click
temp = butnum(3, 8) + 1
butnum(3, 8) = temp
Button62.Text = butnum(3, 8)
If butnum(3, 8) > 9 Then butnum(3, 8) = 0
End Sub
Private Sub Button63_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button63.Click
temp = butnum(3, 9) + 1
butnum(3, 9) = temp
Button63.Text = butnum(3, 9)
If butnum(3, 9) > 9 Then butnum(3, 9) = 0
End Sub
Private Sub Button64_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button64.Click
temp = butnum(4, 7) + 1
butnum(4, 7) = temp
Button64.Text = butnum(4, 7)
If butnum(4, 7) > 9 Then butnum(4, 7) = 0
End Sub
Private Sub Button65_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button65.Click
temp = butnum(4, 8) + 1
butnum(4, 8) = temp
Button65.Text = butnum(4, 8)
If butnum(4, 8) > 9 Then butnum(4, 8) = 0
End Sub
Private Sub Button66_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button66.Click
temp = butnum(4, 9) + 1
butnum(4, 9) = temp
Button66.Text = butnum(4, 9)
If butnum(4, 9) > 9 Then butnum(4, 9) = 0
End Sub
Private Sub Button67_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button67.Click
temp = butnum(5, 7) + 1
butnum(5, 7) = temp
Button67.Text = butnum(5, 7)
If butnum(5, 7) > 9 Then butnum(5, 7) = 0
End Sub
Private Sub Button68_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button68.Click
temp = butnum(5, 8) + 1
butnum(5, 8) = temp
Button68.Text = butnum(5, 8)
If butnum(5, 8) > 9 Then butnum(5, 8) = 0
End Sub
Private Sub Button69_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button69.Click
temp = butnum(5, 9) + 1
butnum(5, 9) = temp
Button69.Text = butnum(5, 9)
If butnum(5, 9) > 9 Then butnum(5, 9) = 0
End Sub
Private Sub Button70_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button70.Click
temp = butnum(6, 7) + 1
butnum(6, 7) = temp
Button70.Text = butnum(6, 7)
If butnum(6, 7) > 9 Then butnum(6, 7) = 0
End Sub
Private Sub Button71_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button71.Click
temp = butnum(6, 8) + 1
butnum(6, 8) = temp
Button71.Text = butnum(6, 8)
If butnum(6, 8) > 9 Then butnum(6, 8) = 0
End Sub
Private Sub Button72_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button72.Click
temp = butnum(6, 9) + 1
butnum(6, 9) = temp
Button72.Text = butnum(6, 9)
If butnum(6, 9) > 9 Then butnum(6, 9) = 0
End Sub
Private Sub Button73_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button73.Click
temp = butnum(7, 7) + 1
butnum(7, 7) = temp
Button73.Text = butnum(7, 7)
If butnum(7, 7) > 9 Then butnum(7, 7) = 0
End Sub
Private Sub Button74_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button74.Click
temp = butnum(7, 8) + 1
butnum(7, 8) = temp
Button74.Text = butnum(7, 8)
If butnum(7, 8) > 9 Then butnum(7, 8) = 0
End Sub
Private Sub Button75_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button75.Click
temp = butnum(7, 9) + 1
butnum(7, 9) = temp
Button75.Text = butnum(7, 9)
If butnum(7, 9) > 9 Then butnum(7, 9) = 0
End Sub
Private Sub Button76_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button76.Click
temp = butnum(8, 7) + 1
butnum(8, 7) = temp
Button76.Text = butnum(8, 7)
If butnum(8, 7) > 9 Then butnum(8, 7) = 0
End Sub
Private Sub Button77_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button77.Click
temp = butnum(8, 8) + 1
butnum(8, 8) = temp
Button77.Text = butnum(8, 8)
If butnum(8, 8) > 9 Then butnum(8, 8) = 0
End Sub
Private Sub Button78_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button78.Click
temp = butnum(8, 9) + 1
butnum(8, 9) = temp
Button78.Text = butnum(8, 9)
If butnum(8, 9) > 9 Then butnum(8, 9) = 0
End Sub
Private Sub Button79_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button79.Click
temp = butnum(9, 7) + 1
butnum(9, 7) = temp
Button79.Text = butnum(9, 7)
If butnum(9, 7) > 9 Then butnum(9, 7) = 0
End Sub
Private Sub Button80_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button80.Click
temp = butnum(9, 8) + 1
butnum(9, 8) = temp
Button80.Text = butnum(9, 8)
If butnum(9, 8) > 9 Then butnum(9, 8) = 0
End Sub
Private Sub Button81_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button81.Click
temp = butnum(9, 9) + 1
butnum(9, 9) = temp
Button81.Text = butnum(9, 9)
If butnum(9, 9) > 9 Then butnum(9, 9) = 0
End Sub
End Class

New Topic/Question
Reply



MultiQuote







|