Question: in c# visual studio 1What is a listBox control? Explain each of the following properties: Explain each of the following properties: a. .Items collection b.

in c# visual studio

1What is a listBox control? Explain each of the following properties:

Explain each of the following properties:

a. .Items collection

b. .Items(n) for some integer n

c. .Items.Count

d. .SelectedIndex

e. .SelectedItem

f. .Sorted

2. Explain the use of each of the following methods for a listBox.

a. .Add(Dave)

b. .Remove(Dave)

c. .Insert(0, New Item)

d. .RemoveAt(0)

e. .Clear

f. .Items.Contains(Dave)

g. .Items.IndexOf(Dave)

3. Assume that the program has radio buttons named radSmall, radMedium, and radLarge. Assign a value to the variable decPrice depending on which one of the three buttons is checked. The values are 5.55 for radSmall, 7.25 for radMedium, and 9.95 for radLarge.

4. Assume that the program has check boxes named chkMushrooms, chkHamburger, and chkpepperoni. Add 1.25 to the variable decPrice for each of these check boxes that is checked.

5. Display a message box with the message Is that correct?, the title Thank You and the button Messageboxbuttons.YesNo. The value returned should be stored in a variable named buttonClicked (with is of type DialogResult).

6. The values defined for the type dialogResult are:

DialogResult.Abort

DialogResult.Cancel

DialogResult.Ignore

DialogResult.No

DialogResult.None

DialogResult.OK

DialogResult.Retry

DialogResult.Yes

Consider the instructions:

DialogResult reply;

reply = MessageBox.Show("Really Quit", "Verify", MessageBoxButtons.YesNoCancel);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!