Graphical User Interfaces with Windows Forms: Part 2
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
Menus | show 🗑
|
||||
Parent Menu | show 🗑
|
||||
show | Menus can have Alt key shortcuts(also called access shortcuts, keyboard shortcuts, or kotkeys), which are accessed by pressing Alt and the underlined letter - for example, Alt + F typically expands the File menu
🗑
|
||||
Creating a Menu | show 🗑
|
||||
Adding Menu Items | show 🗑
|
||||
Creating Access Shortcut | show 🗑
|
||||
show | Used to add other shortcut keys for menu items
🗑
|
||||
show | You can hide the shortcut keys by setting this property false
🗑
|
||||
show | Used to modify how the shortcut keys are displayed in the menu item
🗑
|
||||
Separator Bars | show 🗑
|
||||
show | 1. Property[RightToLeft]..Description[Causes text to display from right to left. This is useful for languages that are read from right to left]
🗑
|
||||
1. ToolStripMenuItem Property | show 🗑
|
||||
show | 2. Property[CheckOnClick]..Description[Indicates that a menu item should appear checked or unchecked as it is clicked]...
🗑
|
||||
show | 3. Property[ShortcutKeyDisplayString]..Description[Specifies text that should appear beside a menu item for a shortcut key. If left blank, the key names are displayed. Otherwise, the text in this property is displayed for the shortcut key]...
🗑
|
||||
4. ToolStripMenuItem Property | show 🗑
|
||||
show | 6. Property[Text]..Description[Specifies the menu item's text. To create an Alt access shortcut, precede a character with &]
🗑
|
||||
Common ToolStripMenuItem Event | show 🗑
|
||||
MonthCalendar Control | show 🗑
|
||||
show | 1. Property[FirstDayOfWeek]..Description[Sets which day of the week is the first displayed for each week in the calendar]...
2. Property[MaxDate]..Description[The last date that can be selected]...
🗑
|
||||
2. MonthCalendar Properties | show 🗑
|
||||
3. MonthCalendar Properties | show 🗑
|
||||
4. MonthCalendar Properties | show 🗑
|
||||
show | 1. Event[DateChanged]..Description[Generated when a date is selected in the calendar]
🗑
|
||||
show | Similar to the MonthCalendar control but displays the calendar when a down arrow is selected
🗑
|
||||
1. DateTimePicker Properties | show 🗑
|
||||
2. DateTimePicker Properties | show 🗑
|
||||
3. DateTimePicker Properties | show 🗑
|
||||
4. DateTimePicker Properties | show 🗑
|
||||
5. DateTimePicker Properties | show 🗑
|
||||
6. DateTimePicker Properties | show 🗑
|
||||
7. DateTimePicker Properties | show 🗑
|
||||
show | 1. Event[ValueChanged]..Description[generatd when the Value property changes, including when the user selects a new date or time]
🗑
|
||||
LinkLabel Control | show 🗑
|
||||
1. Common LinkLabel Properties | show 🗑
|
||||
show | 2. Property[LinkArea]..Description[Specifies which portion of text in the LinkLabel is part of the Link]...
3. Property[LinkBehavior]..Description[Specifies the link's behavior, such as how the link appears when the mouse is placed over it]...
🗑
|
||||
show | 4. Property[LinkColor]..Description[Specifies the original color of the link before it's been visited. The default color(typically blue) is set by the system]...
🗑
|
||||
show | 5. Property[LinkVisited]..Description[If true, the link appears as through it has been visited(its color is changed to that specified by property VisitedLinkColor). The default value is false]...
🗑
|
||||
5. Common LinkLabel Properties | show 🗑
|
||||
show | 8. Property[VisitedLinkColor]..Description[Specifies the color of a visited link. The default color(typically purple) is set by the system]
🗑
|
||||
Common LinkLabel Event | show 🗑
|
||||
Start Method | show 🗑
|
||||
ListBox Control | show 🗑
|
||||
CheckedListBox Control | show 🗑
|
||||
show | 1. Property[Items]..Description[The collection of items in the ListBox]...
2. Property[MultiColumn]..Description[Indicates whether the ListBox can display multiple columns. Multiple columns eliminate vertical scrollbars from the display]...
🗑
|
||||
2. Common ListBox Properties | show 🗑
|
||||
show | If multiple items are selected, use property SelectedIndices]...
4. Property[SelectedIndices]..Description[Returns a collection containing the indices for all selected items]...
🗑
|
||||
4. Common ListBox Properties | show 🗑
|
||||
5. Common ListBox Properties | show 🗑
|
||||
6. Common ListBox Properties | show 🗑
|
||||
7. Common ListBox Properties | show 🗑
|
||||
Common ListBox Methods | show 🗑
|
||||
Common ListBox Event | show 🗑
|
||||
Adding Items to ListBoxes and CheckedListBoxes | show 🗑
|
||||
1. Common CheckedListBox Properties | show 🗑
|
||||
2. Common CheckedListBox | show 🗑
|
||||
show | 3. Property[CheckOnClick]..Description[When true and user clicks an item, the item is both selected and checked or unchecked. By default, this property is false, which means that user must select an item, then click it again to check or uncheck it]...
🗑
|
||||
show | 4. Property[SelectionMode]..Description[Determines whether items can be selected and checked. The possible values are One(the default; allows multiple checks to be placed) or None (does not allow any checks to be placed)]...
🗑
|
||||
Common CheckedListBox Method | show 🗑
|
||||
Common CheckedListBox Event | show 🗑
|
||||
show | 1. Property[CurrentValue]..Description[Indicates whether the current item is checked or unchecked. Possible values are Checked, Unchecked, and Indeterminate]...
🗑
|
||||
2. ItemmCheckEventArgs Properties | show 🗑
|
||||
ComboBox Control | show 🗑
|
||||
1. Common ComboBox Properties | show 🗑
|
||||
show | Value DropDown(default) means the text portion is editable but the user must click an arrow button to see the list portion. Value DropDownList means that the text portion is not editable and the user must click the arrow button to see list portion]...
🗑
|
||||
3. Common ComboBox Properties | show 🗑
|
||||
4. Common ComboBox Properties | show 🗑
|
||||
5. Common ComboBox Properties | show 🗑
|
||||
6. Common ComboBox Properties | show 🗑
|
||||
Common ComboBox Event | show 🗑
|
||||
show | Determines the type of ComoBox and is represented as a value of the ComboBoxStyle enumeration, which contains values Simple, DropDown, and DropDownList. Simple does not display a drop-down arrow. A scrollbar appears next to the control.
🗑
|
||||
2. DropDownStyle | show 🗑
|
||||
3. DropDownStyle | show 🗑
|
||||
TreeView Control | show 🗑
|
||||
Parent Node | show 🗑
|
||||
show | Child nodes that have the same parent node
🗑
|
||||
show | The first parent node of a tree
🗑
|
||||
1. Common TreeView Properties | show 🗑
|
||||
show | 2. Properties[ImageList]..Description[Specifies an ImageList object containing the node icons. An ImageList object is a collection that contains Image objects]...
🗑
|
||||
show | 3. Properties[Nodes]..Description[Returns the collection of TreeNodes in the control as a TreeNodeCollection. It contains methods Add, Clear, and Remove. Removing a parent node deletes all its children]...
🗑
|
||||
4. Common TreeView Properties | show 🗑
|
||||
Common TreeView Event(Event Arguments TreeViewEventArgs) | show 🗑
|
||||
1. Common TreeNode Properties | show 🗑
|
||||
show | 2. Property[FirstNode]..Description[Specifies the first node in the Nodes collection(the first child in the tree)]...
3. Property[FullPath]..Description[Indicates the path of the node, starting at the root of the tree]...
🗑
|
||||
3. Common TreeNode Properties | show 🗑
|
||||
4. Common TreeNode Properties | show 🗑
|
||||
show | 8. Property[PrevNode]..Description[Previous sibling node]...
9. Property[SelectedImageIndex]..Description[Specifies the index in the TreeView's ImageList of the image to use when the node is selected]...
🗑
|
||||
6. Common TreeNode Properties | show 🗑
|
||||
show | 1. Method[Collapse]..Description[Collapses a node]...
2. Method[Expand]..Description[Expands a node]...
3. Method[ExpandAll]..Description[Expands all the children of a node]...
🗑
|
||||
show | 4. Method[GetNodeCount]..Description[Returns the number of child nodes]
🗑
|
||||
Adding A Root Node | show 🗑
|
||||
Adding Children to Root Node | show 🗑
|
||||
show | Provides functionality for working with string that are file or directrly paths
🗑
|
||||
ListView Control | show 🗑
|
||||
show | 1. Property[Activation]..Description[Determines how th user activates an item. This property takes a value in the ItemActivation enumeration. Possible values are OneClick, TwoClick, and Standard]...
🗑
|
||||
show 🗑
|
|||||
show 🗑
|
|||||
show 🗑
|
|||||
show | 8. Property[View]..Description[Determines appearance of ListViewItems. Possible values are LargeIcon(default7), SmallIcon, List, Details, and Tile]
🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
TimC#Programming
Popular Engineering sets