|
-
Mar 31st, 2006, 01:17 PM
#1
Thread Starter
New Member
[2005] Newbie question
I am looking for a way to check the state of several different checkboxes without having to write the same code over and over with differen name.checked = true
IE: I want to reduce the code
Private Sub chk_Click(ByVal sender As System.Object, ByVal e_
As System.EventArgs) Handles chk.Click
if name1.checked = True then msgbox("1 is checked")
if name2.checked = True then msgbox("2 is checked")
if name3.checked = True then msgbox("3 is checked")
ect.. up to 6
End Sub
Any help would be great.
Thanks,
Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|