944,187 Members | Top Members by Rank

Ad:
May 9th, 2007
0

end statement error happen in vbscript

Expand Post »
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...

<script>

Sub Changed()
Try
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
Response.Write(ex.ToString)
End Sub
</script>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thirunavukaras is offline Offline
23 posts
since May 2007
May 10th, 2007
0

Re: end statement error happen in vbscript

maybe you should set the backstyle prop. to 'vbBackStyleOpaque' (=1) instead of 0.
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
PVBert is offline Offline
60 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: passing parameters in bat file
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: hlp me plz





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC