ok, so i made 2 panels with atletic jerseys and electronis and 2 check boxes.
If you click a check box it is suppose to show panel 1 only and if you click check box 2 then its suppose to show panel 2 only. if no check box is checked then its suppose to show both panels. when i code the if, then, else. it shows error, "end of statement expected" any help please. heres my behind the code for vb:
theres a lil blue curly thing under both my Then statements.
Thanks
If you click a check box it is suppose to show panel 1 only and if you click check box 2 then its suppose to show panel 2 only. if no check box is checked then its suppose to show both panels. when i code the if, then, else. it shows error, "end of statement expected" any help please. heres my behind the code for vb:
Code:
Protected Sub controlchanged(sender As Object, e As System.EventArgs) Handles CheckBoxJersey.CheckedChanged, CheckBoxElectronics.CheckedChanged
Dim noselection As Boolean = True
If
CheckBoxJersey.Checked = True then
Panel1.Visible = True
Else
Panel1.Visible = False
End If
If
CheckBoxElectronics.Checked = True then
Panel2.Visible = True
Else
Panel2.Visible = False
End If
End Sub
End Class
Thanks