beginner question control button

Paul123

New member
Joined
Jul 29, 2007
Messages
1
Programming Experience
Beginner
Hello,

Can sombody tell me why the code is not working?

Thanks...
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles Button1.Click
        Dim CheckBox1 As Integer
        If CheckBox1 = 0 Then
            MsgBox("on")
            If CheckBox1 = 1 Then
                MsgBox("off")
            End If
        End If
    End Sub
 
Last edited by a moderator:
Back
Top