News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Uncheck multiple Checkboxes in VB2005.net

Started by SwissToni, February 01, 2008, 20:41:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SwissToni

just started a module in VB and im struggling on this :D

lecturer says i must use "with-end with" statements to clear 3 checkboxes i have in a groupbox

obviously unchecking checkboxes 1 by 1 isnt an issue, but this with-end with statement has me puzzled :)

i understand its use when im trying to change multipe properties of 1 object, a textbox, label etc, but im struggling to understand how i can use it to change 1 property of multiple objects :)


Mardoni

I hope youre using a for-each next loop with your with end-with block :)

madmax

aye always find a for each better


for each chkbox in etc...
 chkbox.checked = false
next