2. Slide 2 of 2609/20/13
The Selection list controls that are used for selecting a value from a list.
The ListView control displays a collection of items within a collection.
The TreeView control displays the data in a hierarchical manner.
The RichTextBox control allows displaying, entering, and manipulating text within the control.
The ProgressBar control is used in applications
3. Slide 3 of 3809/20/13
Selection List Controls
Selection list controls are controls used for selecting a value from a specified range of
values. These controls allow you to select values from a range using the up and down arrows.
There are two types of selection list controls namely :
4. Slide 4 of 3809/20/13
The NumericUpDown control is a selection list control that allows you to select numeric values
from a range of values.
5. Slide 5 of 3809/20/13
Increment Specifies or retrieves the value by which the current value in the control will be incremented or
decremented when up or down button is clicked.
Maximum Specifies or retrieves the maximum value that the control can have in a particular range.
Minimum Specifies or retrieves the minimum value that the control can have in a particular range.
ThousandsSeparator Specifies or retrieves a value indicating whether a thousands separator is displayed in the up-down
Value Specifies or retrieves the value assigned to the control.
DownButton Decreases the value of the up-down control.
UpButton Increases the value of the up-down control.
ValueChanged Occurs when the Value property of the control has been changed.
6. Slide 6 of 3809/20/13
The DomainUpDown control is a selection list control that allows you to select text values
from a range of values.
This control is generally used when the range of values indicates an order such as days of a
week and months of the year.
7. Slide 7 of 3809/20/13
Items Assigns a collection of objects to the control.
MaximumSize Specifies or retrieves the maximum size of the up and down arrows.
MinimumSize Specifies or retrieves the minimum size of the up and down arrows.
Readonly Specifies or retrieves a value indicating whether the text in the control can be modified using the up and down
SelectedItem Specifies or retrieves the selected item using the index value of the selected item in the collection.
DownButton Displays the next item present in the object collection.
UpButton Displays the previous item present in the object collection.
Selectedltemchanged Occurs when the value of the Selectedltem property has been changed.
8. Slide 8 of 3809/20/13
The ListView control is used to display a collection of items in a list. This control allows you
to add items to a collection and displays the items along with their icons, which can be small or
large in size.
There are five main views of ListView control,which are listed as follows:
9. Slide 9 of 3809/20/13
Columns Retrieves the collection of all column headers that are displayed in the control.
Items Retrieves a collection that contains all items in the control.
MultiSelect Specifies or retrieves a value that indicates whether multiple items can be selected.
SelectedItems Retrieves the items that are selected in the control.
View Specifies or retrieves how items are displayed in the control. The value of this property
can be set using the different types of views defined in the View enumeration. The
different types of views are Tile, List, Details, Smalllcon and Largelcon.
Arrangelcons Arranges icons in the control when they are displayedas icons.
Clear Removes all items and columns from the control.
GetItemAt Retrieves the item at a specified location.
Sort Sorts the list view items.
ColumnClick Occurs when the column header within the list view control is clicked.
Itemcheck Occurs when the check state of an item is modified.
ItemSelectionChanged Occurs when the selection state of an item is changed.
SelectedIndexChanged Occurs when the index of the selected item in the list view control is modified.
10. Slide 10 of 3809/20/13
11. Slide 11 of 3809/20/13
The TreeView control displays data in a hierarchical manner. This control is similar to the
left pane of the Windows Explorer. The TreeView control has three types of nodes. These
12. Slide 12 of 3809/20/13
Nodes Retrieves a set of TreeNode objects that represents theroot nodes of th e control.
SelectedNode Specifies or retrieves the tree node that is currently selected in the control.
ShowPlusMinus Specifies or retrieves a value, which indicates whether a plus sign (+) and minus
sign (-) buttons are displayed next to tree nodes, which contain child tree nodes.
ShowRootLines Specifies or retrieves a value, which indicates whetherlines are drawn between the
tree nodes that are located at the root of the tree view.
TopNode Retrieves the first tree node, which is completely visible in the control.
GetNodeAt Retrieves the tree node at the specified location.
GetNodeCount Retrieves the number of tree nodes, optionally including nodes in the subtrees.
AfterCollapse Occurs after the tree node is collapsed.
AfterExpand Occurs after the tree node within the control is expanded.
AfterSelecc Occurs after the tree node is selected.
NodeMouseClick Occurs when the user clicks a TreeNode with the mouse.
13. Slide 13 of 3809/20/13
14. Slide 14 of 3809/20/13
The RichTextBox control is used for displaying, entering, and manipulating text data. The
control is similar to the WordPad application, as it allows text formatting such as making the
text bold, applying bullets and links, and changing the font of the text. The control also loads
text and embedded images from a file, provides undo and redo editing operations, and allows
you to find specified characters.
The RichTextBox control, by default, displays both horizontal and vertical scrollbars. The
text in the RichTextBox control can either be accessed in text format or in rich text format
15. Slide 15 of 3809/20/13
Font Specifies or retrieves the font of the text displayed in the control.
ScrollBars Specifies or retrieves the type of scroll bars for the control.
SelectedText Specifies or retrieves the selected text in the control.
SelectionFont Specifies or retrieves the font of the selected text or at the insertion point.
SelectionLength Specifies or retrieves the number of characters selected in the control.
Text Specifies or retrieves the text in the control.
wordwrap Determines whether the control automatically wraps the words towards the beginning of the next line
AppendText Adds text to the current text of a RichTextBox control.
Copy Copies the selected text from the control to the clipboard.
Paste Pastes the contents of the clipboard into the control.
Redo Performs the last operation again that was undone in the control.
Undo Undoes the last edit operation.
SelectAll Selects all text in the control.
HScroll Occurs when the user clicks the horizontal scroll bar of the control.
VScroll Occurs when the user clicks the vertical scroll bar of the control.
16. Slide 16 of 3809/20/13
17. Slide 17 of 3809/20/13
18. Slide 18 of 1809/20/13
The ProgressBar control is a window that can be used to indicate the progress of an
operation in an application.
This gives you an idea about how long it will take for the process to get complete.
The ProgressBar control can be implemented with or without using visual styles.