Visual Basic If statements with Check Boxes
<p>I'm doing a homework assignment for a class of mine. The basis is there are 3 radio button options, and 6 check boxes. Any number of check boxes can be checked for each radio button and I'm making if statements for every single possibility. I'm not sure if that is the right way to be going about this because it is so much more code than anything else we've been doing lately.</p>

<pre><code>If ckboxPlatter.Checked = True And ckboxServing.Checked = True And ckboxSoup.Checked = True And ckboxSugar.Checked = True And ckboxCreamer.Checked = True And ckboxTeapot.Checked = True Then
                    lblOrder.Text = "Thank you for your order!" &amp;
            ControlChars.NewLine &amp; "You Ordered:" &amp;
            ControlChars.NewLine &amp; "1 place setting of Blue Willow" &amp;
            ControlChars.NewLine &amp; "Platter" &amp;
            ControlChars.NewLine &amp; "Serving Bowl" &amp;
            ControlChars.NewLine &amp; "8 Soup Bowls" &amp;
            ControlChars.NewLine &amp; "Sugar Bowl" &amp;
            ControlChars.NewLine &amp; "Creamer" &amp;
            ControlChars.NewLine &amp; "Teapot" &amp;
            ControlChars.NewLine &amp; "For a grand total of $" &amp; (dblWessex + dblPlatter + dblServing + dblSoup + dblSugar + dblCreamer + dblTeapot)
</code></pre>

<p>And I would have to do that for every single possibility with the checkboxes, and also do that for each radio button. On top of that there is a listbox to go along with it with 20 indexes. Is there another way to do this that isn't as long?</p>