Workshop


Quiz

1.

Which control would you use to display text that the user can't edit?

2.

What common property is shared by the Label control and text box and whose value determines what the user sees in the control?

3.

What property must be set to True before you can adjust the height of a text box control?

4.

What is the default event of a Button control?

5.

A button whose Click event is triggered when the user presses Enter while another control has the focus is called an ______?

6.

Which control would you use to display a yes/no value to a user?

7.

How would you create two distinct sets of mutually exclusive option buttons?

8.

To manipulate items in a list, you use what collection?

9.

What method adds an item to a list in a specific location?

Answers

1.

A label control.

2.

The Text property.

3.

The MultiLine property to True.

4.

The Click event.

5.

Accept button.

6.

You would use the check box.

7.

Place the buttons on two different container controls.

8.

The Items collection.

9.

The Insert() method.

Exercises

1.

Use the skills you learned in the previous hours to set the tab order for your Lists form. Make the Add an Item button the first control to get the focus, and the list box the last to get the focus.

2.

Create a form with two list boxes. Add a number of items to one list box at design time using the Properties window. Create a button that, when clicked, removes the selected item in the first list and adds it to the second list.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net