Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit

Quiz

1.

True or False: Form menu bars are created using the Context Menu control.

2.

To create an accelerator, or hotkey, preface the character with a(n) ______.

3.

To place a check mark next to a menu item, you set what property of the item?

4.

How do you add code to a menu item?

5.

Toolbar items are part of what collection?

6.

True or False: Every button on a toolbar has its own Click event.

7.

What control displays information to the user at the bottom of a form?

Answers

1.

False. They are created using the MenuStrip control.

2.

Ampersand (&)

3.

The Checked property

4.

Double-click the menu item.

5.

The Items collection.

6.

True

7.

The StatusStrip control

Exercises

1.

Create a new project and build a ToolStrip that has a drop-down button.

2.

Using the ToolStrip control, figure out how to display status text in place of a button. (Hint: There is a special type of item in the Items collection that does this.

Категории