Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How can I put checkboxes into an array and use FOR LOOP to add value to a total when a user check the box

$
0
0
Basically I am trying to make a app that is named computer store and It ask the user what kind of computer they would like to purchase and also I have customizable specs such as ram and monitor size and when the user checks these checkboxes it adds its price to a double called total I would like to know is there a way I can create a for loop with an array of checkboxes that can check to see if the user has check anything and If they did it would automatically add its value to the total and i would like to do this with one if statement that would be inside of the for loop

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>