はりつけます。
TextBoxのTextに0を予めセット。
Coding
配列・変数の定義は各プロシージャの外に書く。
Dim a() As Integer = {66, 78, 45, -5, 990, 1, -42, 37, 20, -39}
Dim i As Integer
Dim j As Integer
Dim w As Integer
検索には
Dim x As Integer = TextBox1.Text
Dim ii As Integer
Label4.Text = "該当なし"
For i = 0 To a.Length - 1
If a(i)=x Then
ii = i
Label4.Text = ii + 1 & "番目"
End If
Next