Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

1. What is meant by Latitudes? 2. What is cartography ?

Answered: 1 week ago

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago