|
-
Jan 13th, 2011, 02:24 PM
#1
Thread Starter
PowerPoster
Control looping.
Hi all,
I am trying to do something and not able to get to where I need to go. I have 12 checkboxes on a form. 4 for "And", 4 for "Or" and 4 for "Exclude".
I am trying to check to see if all checkboxes that contain the word "Exclude" in the control name are checked. If they are ALL checked, to show a messagebox. I am getting there but when I try to loop through the controls to check the name, I am getting a blue line under the code that says:
Class 'System.Windows.Form.Control' cannot be indexed because it has no default property.
Screenshots attached.
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
|