i have a form that has several checkboxes. I want a label to display the total amount of all the checkboxes clicked.
for example:
cbo1 = 100
cbo 2 = 75

if the user clicks both then the label will display 175
also, if the user unclick a box it will deduct it from the total.

do you want the changes to take place immediately? or after form is submitted?

Dim myResult as Integer = 0
For Each chk as CheckBox in myPanel.Controls
If chk.Checked = True Then
myResult += chk.Value
End If
Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.