Link to home
Start Free TrialLog in
Avatar of mulciber19
mulciber19

asked on

Check boxes in VB

In VB for check boxes:
1.Where do you write the code (under the chkbox or the cmdbutton?)
2.If you have a no. of boxes and each returns a value which are added for a total how do you structure the code?Examples please.Thanks.
Avatar of sivaramy
sivaramy

1) You can write the code both under Check box and Command button. Both of them are having events.

2) I think you are going to have the value displayed in the caption. So whenever you click a check box if the ctatus is vbChecked add the value to a public variable and if vbUnChecked detuct the value.
ASKER CERTIFIED SOLUTION
Avatar of vbyuval
vbyuval

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial