Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 End of statement expected???? help please

$
0
0
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:

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

theres a lil blue curly thing under both my Then statements.

Thanks

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>