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
--
Gerry O'Brien [MVP]
Visual Basic .NET(VB.NET)
"freddy" <(E-Mail Removed)> wrote in message
news:B97CA701-5099-4B97-A00D-(E-Mail Removed)...
>I have six sheckbow and I told like to know if there checked and if so add
>50
> cents to the total.
|