Question
Emmas Custom Embroidery sells shirts with detailed embroidered images. Emma allows users to select the color for a shirt, but she allows only specific embroidery
Emmas Custom Embroidery sells shirts with detailed embroidered images. Emma allows users to select the color for a shirt, but she allows only specific embroidery designs with each shirt color.
Create a project named EmmasEmbroidery that allows a user to choose one of four shirt colors from a
ListBoxwhite, black, red, or blue.
When the user selects a shirt color, the program should display a second ListBox that contains the following embroidery design choices:
White shirtpeacock, palm tree, or rose
Black shirtrace car, star, or moon
Red shirtpalm tree or moon
Blue shirtpeacock or moon
After the user selects an embroidery design, the program should display a congratulatory message on a Label indicating that the choice is a good one, and the design ListBox also becomes invisible
. If the user makes a new selection from the shirt color ListBox, the congratulatory message is invisible until the user selects a complementary design.
Hint: You can remove the entire contents of a ListBox using the Items.Clear() method, as in this.listBox1.Items.Clear();
C# Form application
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started