I'm new to this, please bare with... I have 4 checkboxes, each displaying a $ amount depending on the selection. I have it working so that if 1 checkbox is selected, textbox shows $1.00 or $20.00. But, I'm having trouble with if 2 checkboxes are selected it would be $21.00 or 3 checkboxes or all 4.
I have this to show one checkbox selection.
if (checkBox247Access.Checked)
{
textBoxExtras.Text = "$1.00";
}
Childrencollection. That gives you an array of checkboxes that you can iterate over (or use linq) to calculate the sum. Then assign this sum to the textbox.