1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
| Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click
If TextBox44.Text = "A" Then
TextBox3.Text = 0
ElseIf TextBox3.Text < 4 Then
TextBox3.Text = 1 + TextBox3.Text
End If
TextBox19.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text)
TextBox20.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text)
TextBox21.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text)
TextBox22.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text)
TextBox23.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text) + (TextBox11.Text)
TextBox24.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text) + (TextBox11.Text) + (TextBox12.Text)
TextBox25.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text) + (TextBox11.Text) + (TextBox12.Text) + (TextBox13.Text)
TextBox26.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text) + (TextBox11.Text) + (TextBox12.Text) + (TextBox13.Text) + (TextBox14.Text)
TextBox27.Text = Val(TextBox3.Text) + (TextBox4.Text) + (TextBox5.Text) + (TextBox6.Text) + (TextBox7.Text) + (TextBox8.Text) + (TextBox9.Text) + (TextBox10.Text) + (TextBox11.Text) + (TextBox12.Text) + (TextBox13.Text) + (TextBox14.Text) + (TextBox15.Text)
If TextBox19.Text < 4 Then
Label12.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (4 - TextBox19.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (4 - TextBox19.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (4 - TextBox19.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label12.Text = 0 & "%"
End If
If TextBox20.Text < 8 Then
Label13.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (8 - TextBox20.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (8 - TextBox20.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (8 - TextBox20.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label13.Text = 0 & "%"
End If
If TextBox21.Text < 12 Then
Label14.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (12 - TextBox21.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (12 - TextBox21.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (12 - TextBox21.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label14.Text = 0 & "%"
End If
If TextBox22.Text < 16 Then
Label15.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (16 - TextBox22.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (16 - TextBox22.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (16 - TextBox22.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label15.Text = 0 & "%"
End If
If TextBox23.Text < 20 Then
Label16.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (20 - TextBox23.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (20 - TextBox23.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (20 - TextBox23.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label16.Text = 0 & "%"
End If
If TextBox24.Text < 24 Then
Label17.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (24 - TextBox24.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (24 - TextBox24.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (24 - TextBox24.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label17.Text = 0 & "%"
End If
If TextBox25.Text < 28 Then
Label18.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (28 - TextBox25.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (28 - TextBox25.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (28 - TextBox25.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label18.Text = 0 & "%"
End If
If TextBox26.Text < 32 Then
Label19.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (32 - TextBox26.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (32 - TextBox26.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (32 - TextBox26.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label19.Text = 0 & "%"
End If
If TextBox27.Text < 36 Then
Label20.Text = Math.Round(Val(100 - ((((48 - Label61.Text - (36 - TextBox27.Text)) / (48 - Label61.Text)) * ((47 - Label61.Text - (36 - TextBox27.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (36 - TextBox27.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label20.Text = 0 & "%"
End If
If TextBox19.Text < 4 Then
Label21.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (4 - TextBox19.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (4 - TextBox19.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label21.Text = 0 & "%"
End If
If TextBox20.Text < 8 Then
Label29.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (8 - TextBox20.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (8 - TextBox20.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label29.Text = 0 & "%"
End If
If TextBox21.Text < 12 Then
Label28.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (12 - TextBox21.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (12 - TextBox21.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label28.Text = 0 & "%"
End If
If TextBox22.Text < 16 Then
Label27.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (16 - TextBox22.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (16 - TextBox22.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label27.Text = 0 & "%"
End If
If TextBox23.Text < 20 Then
Label26.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (20 - TextBox23.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (20 - TextBox23.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label26.Text = 0 & "%"
End If
If TextBox24.Text < 24 Then
Label25.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (24 - TextBox24.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (24 - TextBox24.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label25.Text = 0 & "%"
End If
If TextBox25.Text < 28 Then
Label24.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (28 - TextBox25.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (28 - TextBox25.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label24.Text = 0 & "%"
End If
If TextBox26.Text < 32 Then
Label23.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (32 - TextBox26.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (32 - TextBox26.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label23.Text = 0 & "%"
End If
If TextBox27.Text < 36 Then
Label22.Text = Math.Round(Val(100 - ((((47 - Label61.Text - (36 - TextBox27.Text)) / (47 - Label61.Text)) * ((46 - Label61.Text - (36 - TextBox27.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label22.Text = 0 & "%"
End If
If TextBox19.Text < 4 Then
Label30.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (4 - TextBox19.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label30.Text = 0 & "%"
End If
If TextBox20.Text < 8 Then
Label38.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (8 - TextBox20.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label38.Text = 0 & "%"
End If
If TextBox21.Text < 12 Then
Label37.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (12 - TextBox21.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label37.Text = 0 & "%"
End If
If TextBox22.Text < 16 Then
Label36.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (16 - TextBox22.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label36.Text = 0 & "%"
End If
If TextBox23.Text < 20 Then
Label35.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (20 - TextBox23.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label35.Text = 0 & "%"
End If
If TextBox24.Text < 24 Then
Label34.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (24 - TextBox24.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label34.Text = 0 & "%"
End If
If TextBox25.Text < 28 Then
Label33.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (28 - TextBox25.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label33.Text = 0 & "%"
End If
If TextBox26.Text < 32 Then
Label32.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (32 - TextBox26.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label32.Text = 0 & "%"
End If
If TextBox27.Text < 36 Then
Label31.Text = Math.Round(Val(100 - ((((46 - Label61.Text - (36 - TextBox27.Text)) / (46 - Label61.Text)))) * 100), 2) & "%"
Else : Label31.Text = 0 & "%"
End If
End Sub |