C# GUI Forms / Operator Overload / Interfaces Flashcards

1
Q

What are menus and what do they look like?

A

Menus provide groups of related commands for Windows forms apps and organize commands without “cluttering” the GUI.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you create menus?

A

To create a menu, open the toolbox and drag a menustrip control onto the form. To add menu items to the menu, click the type here textbox and type the menu item’s name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you make menu items have shortcut keys?

A

Set the ShortcutKeys property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you remove a menu item?

A

Select it with the mouse and press the delete key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you group items by separator bars?

A

Right click and select Insert>Separator or by typing - for the text of a menu item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What types of menu items can you add?

A

Visual studio allows you to add TextBoxes and ComboBoxes as menu items. Before you enter text for a menu item, you are provided with a drop-down list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the convention for menu items that require the user to provide more information?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the common menustrip and toolstrip properties and events?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How would you show a message box in code?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How code would look for checked menu item types look?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the month calendar control?

A

The MonthCalendar control displays a monthly calendar on the form. Multiple dates can be selected by clicking dates on the calendar while holding down the shift key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the month calendar properties and events?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the link label?

A

The link label control displays links to other resources, such as files or web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the common link pabel properties and default event?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How would you use a link label to browse the C: drive?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you use a link label to load a url?

A
17
Q

How would you use a link label to open up an application installed on the computer?

A
18
Q

What is the listbox control?

A

The listbox control allows the user to view and select from multiple items in a list. The checked list box control extends a listbox by including checkboxes next to each item in the list.

19
Q

What are the common properties and default even for listboxes?

A
20
Q

What is a combobox?

A

The combobox control combines textbox features with a drop-down list.

21
Q

What is a treeview?

A

The treeview control displays nodes hierarchically in a tree. A parent node contains chil nodes, and the child nodes can be parents to other nodes. The two child nodes that have the same parent node are considered sibling nodes. The first parent node of a tree is the root node ( a treeview can have multiple roots)

22
Q

What are the treeview properties and devault event?

A
23
Q

What are the common tree node properties and default Event?

A
24
Q

What is a listview?

A

The listview control is a more versatile thatn a listbox and can display items in different formats. ie. icons and details of items in columns

25
Q

how does program loading work?

A

This program loads quickly because it indexes only the files in the current directory. As a result a small delay may occur when a new directory is loaded.

26
Q

What is a tabcontrol?

A

The tabcontrol creates tabbed windows, such as those in visual studio.

27
Q

What is multiple document interface windows?

A

Many complex apps are multiple document interface (MDI) programs, which allow users to edit multiple documents at once.

An MDI program’s main window is called the parent window, and each window inside the app is referred to as a child window.

Figure 15.37 depicts a sample MDI app with two child windows.

To create an MDI Form, create a new Form and set its IsMdiContainer property to true

28
Q

How do you create a multiple document interface?

A
29
Q
A