0

I have a series of checkboxes named cbS1 through cbS20 and I set 'Count' as an integer.

What I need help doing is taking the value of count and check the checkboxes that are greater than the count.

example: count = 7 so checkboxes 8-20 would be checked.

Im not sure how to make an array out of the checkboxes to use in a loop.

1 Answer 1

1

You should store your checkboxes in a single array instead of having 20 different cbSxx objects. Read http://msdn.microsoft.com/en-us/library/wak0wfyt.aspx for an idea of how to do that.

Once you have them in an array, you can use a loop to check the ones you want.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.