Workshop


Quiz

1.

What unit of time is applied to the Interval property of the Timer control?

2.

What collection is used to add new tabs to a Tab control?

3.

What property returns the index of the currently selected tab?

4.

True or False: You should use different Image List controls for storing images of different sizes.

5.

To see columns in a List View control, the View property must be set to what?

6.

The additional columns of data that can be attached to an item in a List View are stored in what collection?

7.

What property of what object would you use to determine how many items are in a List View?

8.

Each item in a Tree View control is called what?

9.

How do you make a node the child of another node?

Answers

1.

Milliseconds

2.

The TabPages collection

3.

The SelectedIndex property

4.

True

5.

Details

6.

The SubItems collection

7.

You check the Count property of the Items collection.

8.

A node

9.

Add it to the Nodes collection of the parent node

Exercises

1.

Add a second Image List control to your project with the List View. Place an icon (32x32 pixels) in this Image List and link the Image List to the LargeImageList property of the List View control. Change the View property to Large Icons. Does the icon appear next to a list item? If not, is there a property of an item you can set so that it does?

2.

Create a new project and add a List View, a button, and a text box to the default form. Create a new item in the List View using the text entered into the text box when the button is clicked.




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