Option Strict On
Public Class frmWindChill
Dim intWindChill(7, 5) As Integer
Dim intWind(5) As Integer
Dim intTemp(7) As Integer
Private Sub nudTemp_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nudTemp.ValueChanged
intTemp(0) = -20
intTemp(1) = -15
intTemp(2) = -10
intTemp(3) = -5
intTemp(4) = 0
intTemp(5) = 5
intTemp(6) = 10
intTemp(7) = 15
End Sub
Private Sub frmWindChill_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
txtWindChill.Text = CStr(intWindChill(7, 5))
MessageBox.Show("The WindChill Factor is:" & intWindChill(7, 5).ToString)
End Sub
Private Sub nudWind_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nudWind.ValueChanged
intWind(0) = 5
intWind(1) = 10
intWind(2) = 15
intWind(3) = 20
intWind(4) = 25
intWind(5) = 30
End Sub
Private Sub txtWindChill_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtWindChill.TextChanged
intWindChill(0, 0) = -26
intWindChill(0, 1) = -46
intWindChill(0, 2) = -58
intWindChill(0, 3) = -67
intWindChill(0, 4) = -74
intWindChill(0, 5) = -79
intWindChill(1, 0) = -21
intWindChill(1, 1) = -40
intWindChill(1, 2) = -51
intWindChill(1, 3) = -60
intWindChill(1, 4) = -66
intWindChill(1, 5) = -71
intWindChill(2, 0) = -15
intWindChill(2, 1) = -34
intWindChill(2, 2) = -45
intWindChill(2, 3) = -53
intWindChill(2, 4) = -59
intWindChill(2, 5) = -64
intWindChill(3, 0) = -10
intWindChill(3, 1) = -27
intWindChill(3, 2) = -38
intWindChill(3, 3) = -46
intWindChill(3, 4) = -51
intWindChill(3, 5) = -56
intWindChill(4, 0) = -5
intWindChill(4, 1) = -22
intWindChill(4, 2) = -31
intWindChill(4, 3) = -39
intWindChill(4, 4) = -44
intWindChill(4, 5) = -49
intWindChill(5, 0) = 0
intWindChill(5, 1) = -15
intWindChill(5, 2) = -25
intWindChill(5, 3) = -31
intWindChill(5, 4) = -36
intWindChill(5, 5) = -41
intWindChill(6, 0) = 7
intWindChill(6, 1) = -9
intWindChill(6, 2) = -18
intWindChill(6, 3) = -24
intWindChill(6, 4) = -29
intWindChill(6, 5) = -33
intWindChill(7, 0) = 12
intWindChill(7, 1) = -3
intWindChill(7, 2) = -11
intWindChill(7, 3) = -17
intWindChill(7, 4) = -22
intWindChill(7, 5) = -25
End Sub
Private Sub btnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click
txtWindChill.Text = ""
End Sub
End Class
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:
by: roma2208Posted on 2009-10-26 at 21:37:24ID: 25669174
which control r u using for nudTemp?