J
Jamie Fraser
Hi,
Is there a way to loop through EVERY control on a form (whether they
are directly on the form, or contained within children of the form)?
I would like to access the size and location of every control - at the
moment im just using a loop as:
For Each c As Control In Me.Controls
For Each cChild As Control In c.Controls
<...>
but this obviously only goes down one level - I could use a whole
series of nested loops, but performance and code readability are quite
important - is there a way to access (or directly loop through) all
the controls?
Thanks
Jamie
Is there a way to loop through EVERY control on a form (whether they
are directly on the form, or contained within children of the form)?
I would like to access the size and location of every control - at the
moment im just using a loop as:
For Each c As Control In Me.Controls
For Each cChild As Control In c.Controls
<...>
but this obviously only goes down one level - I could use a whole
series of nested loops, but performance and code readability are quite
important - is there a way to access (or directly loop through) all
the controls?
Thanks
Jamie