Professional Documents
Culture Documents
Advance GUI Controls: Week 11
Advance GUI Controls: Week 11
Week 11
It functions like a group of pieces of paper placed on top of each other. Each
piece is represented by a tab that allows the user to identify it
Creates a Tabbed Window
Contains TabPage objects
TabPages can have controls
Tabpages have Click event
TAB Control with TAB Pages
Add 3 Tabs.
In first Tab give options for Colors..
In Second Tab give options for font size.
In third tab different messages selection.
Add label for message and editing above properties.
ListView
A tree view is a control that resembles an upside down tree and displays a
hierarchical list of items.
a tree view is only made of branches and each branch is called a node.
Displays nodes hierarchically
Parent nodes have children
The first parent node is called the Root
Use Add() method to add nodes
TreeView
TreeView
TreeView – Using GUI
Add TreeView Control from toolbox.
Right Click on TreeView to open properties -> Nodes
-> Collection -> Add Root or Child.
Populating Listview Programmatically.
for(int i=0;i<listView1.Items.Count;i++)
treeView1.Nodes.Add(listView1.Items[i].ToString());
Split Container
To support progress bar, the .NET Framework provides the ProgressBar class,
which is derived from the Control class.
In the Toolbox, the progress bar is represented by the ProgressBar control.
To programmatically get a progress bar, declare a variable of type
ProgressBar, use the new operator to allocate memory for it, and add it to
the Controls property of its container.
Properties of Progress Bar