Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and get you thinking about how to put your knowledge into practice.

Quiz

1.

True or False: The first control selected in a series is always made the active control.

2.

How many methods are there to add a control to a form from the toolbox?

3.

If you double-click a tool in the toolbox, where on the form is it placed?

4.

Which property fixes an edge of a control to an edge of a form?

5.

What do you change to hide the grid on a form?

6.

Which toolbar contains the functions for spacing and aligning controls?

7.

Which property do you set to make a form an MDI parent?

Answers

1.

True.

2.

There are four primary methods: double-click a tool in the toolbox, drag a tool from the toolbox, clicking a tool in the toolbox and then drawing it on a form, and copying and pasting a control.

3.

The control is placed over the currently selected control, or in the upper-left corner if no control is selected.

4.

The Anchor property.

5.

The ShowGrid property found on the Options dialog box.

6.

The Layout toolbar.

7.

You set the IsMdiContainer property to True to make a form an MDI parent.

Exercises

1.

Create a new Windows Application and add a button to the middle of the form. Experiment with different values for the button's Anchor property, running the project in between property changes.

2.

Modify the MDI Example project in this hour so that the first child that appears is fclsChild2, which in turns shows fclsChild1.




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