i want to change background color in panel if checkbox checked is true

i am used vb script;

but i wrote given code

but the expected end of statement error happend

please help me

how define use vbscript...


Sub Changed()
Dim lcnt As Integer
If Me.c1.Checked = True Then
Me.Panel1.BackColor = Color.Yellow
lcnt = viewstate.Count
viewstate.Add(viewstate.Count, Me.Label1.Text.ToString)
End If
If Me.c1.Checked = False Then
Me.Panel1.BackColor = Color.YellowGreen
End If
Catch ex As Exception
End Sub

maybe you should set the backstyle prop. to 'vbBackStyleOpaque' (=1) instead of 0.