No, one way or another you have to access each control individually. You
can use the loop, where the controls are in a sequential control array as
you have done, or use the For Each method, adding restrictions as required
to have the code address the controls you want, eg..
for each ctl in controls
if typeof ctl is CheckBox then
ctl.checked = vbchecked
end if
next
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Maarten" <gu******@hotmail.com> wrote in message
news:41***********************@news.skynet.be...
: hi all
:
: i'm usung this command to check 16 checkboxes
:
: for inti = 1 to 16
: check1(inti) = vbchecked
: next inti
:
: but with this ommand it wil loop 16 times trough the code
:
: is there a way it will set the checkboxes at once
:
: thanks maarten
:
: