Results 1 to 25 of 25

Thread: Control looping.

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    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.
    Attached Images Attached Images   

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width