checkbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have six sheckbow and I told like to know if there checked and if so add 50
cents to the total.
 
Create a loop to iterate through them and check their checked property. It
returns a boolean value indicating True if checked and False if not checked.

For each ctl as Control In Form1.Controls
If TypeOf ctl Is CheckBox Then
If ctl.checked Then
' add 50 cents to total
End
End If
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top