|
-
Nov 6th, 2012, 10:05 PM
#1
Thread Starter
Junior Member
How to display Check Box Text
My Question is how do I get the check boxes text to display the addons for meals below
Add-ons
• For a hamburger, the three add-on items are: (1) Lettuce, tomato, and onions; (2) Mayonnaise and mustard; and (3) French fries. The price of each is 75 cents.
• For a pizza, the three add-on items are: (1) Pepperoni, (2) Sausage, and (3) Olives. The price of each is 50 cents.
• For a salad, the three items are (1) Croutons, (2) Bacon bits, and (3) Bread sticks. The price of each is 25 cents
my code isn't showing anything on the form
HTML Code:
private void hamburger_CheckChanged(object sender, System.EventArgs e)
{
if (radioHamburger.Checked == true)
ResetChecked();
groupBox2.Text = " Add-on Items ($ .75/each)";
checkBox1.Text = "Lettuce, tomato, and onions";
checkBox2.Text = "Mayonnaise and mustard";
checkBox3.Text = "French fries";
}
private void pizza_CheckChanged(object sender, System.EventArgs e)
{
if (radioPizza.Checked == true)
ResetChecked();
groupBox2.Text = "Add-on Items ($ .50/each)";
checkBox1.Text = "Pepperoni";
checkBox2.Text = "Sausage";
checkBox3.Text = "Olives";
}
private void salad_CheckChanged(object sender, System.EventArgs e)
{
if (radioSalad.Checked == true)
ResetChecked();
groupBox2.Text = "Add-on Items ($ .25/each)";
checkBox1.Text = "Croutons";
checkBox2.Text = "Bacon bits";
checkBox3.Text = "Bread sticks";
}
this is how the check box's should display the addons(text) so if the user clicks another radio botton the check box text changes to the addons for that meal.
and this is what mine is displaying no text?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|