




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This programming course teaches different programming concepts with respect to C Sharp Programming. Key points of this lecture are: Ui Controls, Image Resources, Toolstrip Control, Statusstrip Control, Treeview Control, Listview Control, Image Resources Implementation, Image Collection Editor, Drill-Down Interfaces, Treeview Control Relationships
Typology: Slides
1 / 60
This page cannot be seen from the preview
Don't miss anything!





















































Image Resources (Implementation)
Use the Select Resource dialog box to select an image
Images can be used by The form The entire project
Images are stored in a resource file having a suffix of .resx
Note that resources have many other purposes too They can store just about anything
The ImageList Control (Introduction)
Like resource files, it stores images
It’s used with the TreeView and ListView
control
Use the Image Collection Editor to assign images to the control
All images in a control instance must have the same size If images of multiple sizes are necessary, create multiple control instances
The ImageList Control (Properties)
The Images collection store a reference to
the images
Use the Add method to add new images
programmatically Optional argument contains a string key used to reference the image
Reference in image By index By string key Calling the IndexOfKey method
The ToolStrip Control (Introduction)
Clickable buttons on the toolbar, for example Events fire as the user interacts with these buttons The implementation is similar to a menu
ToolStripButton , Label , DropDownButton , ComboBox , TextBox , ProgressBar
The Items Collection Editor (Illustration)
The ToolStripButton Class
(Members)
Images appear in the folder
The ToolStripDropDownButton
Class
Each item has a data type of ToolStripMenuItem Handle the Click event just like any other menu item
TreeView utilizes a drill down interface to display file hierarchy
ListView displays files and associated icons
TreeView Control Relationships
Root node has no parent node
Children having the same parent are siblings One sibling is designated as the first sibling and another as the last sibling
The TreeView Control
(Properties 1)
The CheckBoxes property can be set to True or False If set to True , check boxes appear to the left of each TreeNode If set to False , they do not
ImageIndex property contains the
numeric index of the image from an associated ImageList control instance
ImageList property contains a reference to an instance of the ImageList control
TreeView Control
(Properties 2)
LabelEdit property ( Boolean ) defines
whether or not the user can edit the textual contents of each TreeNode Nodes property references a collection of TreeNode objects Note that this collection is hierarchical
Scrollable property ( Boolean ) defines
whether or not scroll bars will appear when the TreeNodes will not fit within the visible region of the control instance