ok so this is the problem. I tried so many times on using the for loop and the if statement but it doesnt output anything when it comes to the checkbox. My question is does this really work? i derived some parts of my code to the other answers in updating multiple checkboxes but i dont think it works
foreach (var control in this.Controls)
{
if (control is CheckBox)
{
if (ffcheck.Checked)
{
InitAmo = InitAmo + 50;
InitAmE.Text = "P" + InitAmo.ToString() + ".00";
}
}
}
and an additional question too. If ever the code you post does work, can it work and update the total amount if ever i clicked multiple check boxes? can you also please specify the logic that you use in order to derive to that answer and if ever that another set of code have more functionality and reduce the storage needed to run this code can you please specify it. Thank you very much for your time to answer this code