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 text displayed in the form's title bar is determined by the value in the TitleBarText property.

2.

The named color Control is what kind of color?

3.

Name three places where a form's icon is displayed.

4.

A window with a smaller than normal title bar is called a what?

5.

For a Minimize or Maximize button to be visible on a form, what other element must be visible?

6.

What, in general, is the best value to use for the StartPosition property of a form?

7.

To maximize, minimize, or restore a form in code, you set what property?

8.

What property do you set to make a hidden form appear?

Answers

1.

False. The text displayed in the form's title bar is determined by the value in the form's Text property.

2.

A system color.

3.

In the title bar, on the task bar, and when the user presses Alt+Tab.

4.

Tool window.

5.

The ControlBox property of the form must be set to True.

6.

CenterScreen for the main form and CenterParent for all other forms.

7.

The form's WindowState property.

8.

Set the form's Visible property to True.

Exercises

1.

Create a Windows Application project with a single form that has two buttons on it. One button, when clicked, should move the form to the left by two pixels. The other should move the form to the right by two pixels. Hint: Use the X and Y subproperties of the Location property.

2.

Create a Windows Application with three forms. Give the startup form two buttons. Make the other two forms tool windows, and make one button display the first tool window and the other button display the second tool window.




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