SlideShare a Scribd company logo
Session 2
Trình bày : Võ Ngọc Đạt
Email : vongocdatit@gmail.com
Điện thoại : 0934.969.680
Slide 1 of 2109/20/13
Grouping and Graphic Controls
Slide 2 of 2609/20/13
Module Introduction
Windows Forms contains various controls, which you can use to create a graphical user
interface (GUI) of an application. One such category is values setting controls, which allow
you to select the required values from a list of values. Another category is of the grouping
controls, which enable you to organize the related controls in a group. Lastly, the other
category is of the graphic controls, which are used to display images on the Windows Forms.
Slide 3 of 3809/20/13
Value Setting Controls
Value setting controls are controls that allow you to select the desired values from a list of
values.
There are three types of value setting controls.
+ RadioButton
+ CheckBox
+ CheckedListBox
Slide 4 of 3809/20/13
"RadioButton" Control
The RadioButton control allows the user to select a single value from the given set of values.
Slide 5 of 3809/20/13
Property Description
Appearance Specifies or retrieves a value indicating the appearance of the control. The radio
button can appear as a normal button or as a Windows button.
AutoCheck Specifies or retrieves a value indicating whether the value of the Checked property
and the appearance of the control change automatically when the control is
clicked.
Checked Specifies or retrieves a value indicating whether the control is checked or not.
Image Specifies or retrieves the image appearing on the control.
Method Description
PerformClick Generates a Click event for the control,
imitating the click action by the user.
Select Activates the control.
Event Description
CheckedChanged Occurs when there is a change in the value of the Checked property.
Click Occurs when the radio button control is clicked.
Slide 6 of 3809/20/13
Slide 7 of 3809/20/13
"CheckBox" Control
The CheckBox control allows you to accept multiple values from a list of values. This control
can be used when you want the user to choose one or more options.
Slide 8 of 3809/20/13
Property Description
Checked Specifies or retrieves a value indicating whether the control is
checked.
CheckState Specifies or retrieves the state of the control. The control has three
states Checked, Indeterminate, and
Unchecked.
ThreeState Specifies or retrieves a value indicating whether the control will allow
three checkstates instead of two.
Method Description
Select Activates the control.
Show Exhibits the control to the user.
Event Description
CheckedChanged Occurs when the Checked property of the control is changed.
CheckStateChanged Occurs when the CheckState property of the control is changed.
Click Occurs when the control is clicked.
Slide 9 of 3809/20/13
Slide 10 of 3809/20/13
"CheckedListBox" Control
The CheckedListBox control is a control that allows you to accept multiple values from a
list. This control is similar to a ListBox control, but it displays each value in a list along with a
check box, which can be checked or unchecked.
Slide 11 of 3809/20/13
Property Description
CheckedIndices Indicates the collection of checked indexes in the control.
CheckedItems Indicates the collection of checked items in the control.
CheckOnClick Specifies or retrieves a value whether an item in the control should be ticked
when clicked.
Items Retrieves the collection of all the items in the control.
SelectedIndex Specifies or retrieves the zero-based index of the currently selected item in
the control.
SelectedItem Specifies or retrieves the currently selected item in the control.
SelectedItems Retrieves the collection of the currently selected items in the control.
Method Description
ClearSelected Unselects the items in the control.
GetItemChecked Retrieves a value, which indicates whether the specified item is checked.
GetItemText Retrieves the text of the specified item.
Event Description
ItemCheck Occurs when the checked state of an item changes.
SelectedlndexChanged Occurs when the Selectedlndex property of the control changes.
SelectedValueChanged Occurs when the SelectedValue property of the control changes.
Slide 12 of 3809/20/13
Slide 13 of 3809/20/13
Grouping Controls
Grouping controls are controls that function as a container for other controls. They allow
you to logically organize controls in a group.
The common types of grouping controls are:
+ Panel
+ GroupBox
Slide 14 of 3809/20/13
Graphic Controls
Graphic controls are the controls that are used to display graphics on a form. The types of
graphic controls commonly used are:
+ PictureBox
+ ImageList
Slide 15 of 3809/20/13
"PictureBox" Control
A PictureBox control is used to display images on a form. You can display images as bitmap,
GIF, JPEG,or icon file format using this control.
A PictureBox control can be a container that can hold only a single image at a time.
Slide 16 of 3809/20/13
Property Description
Image Specifies or retrieves the image displayed by the control.
ErrorImage Specifies or retrieves the image to be displayed in the control, if an error has
occurred while the image is being loaded or the loading process has been cancelled.
SizeMode Specifies how the image is displayed in the control. The values for this property are
defined in the PictureBoxSizeMode enumeration, which are:
AutoSize: Fits the control automatically to the size of the image.
CenterImage: Displays the image in the center of the control, if the control's size
is larger than the image.
Strechlmage: Stretches the image to fit within the size of the control.
Method Description
Load Loads a graphic in the control.
Slide 17 of 3809/20/13
"ImageList" Component
The ImageList component in Windows Forms is used to store a collection of images. The
images stored in this component are displayed by other controls.
Slide 18 of 3809/20/13
Property Description
ColorDepth Specifies or retrieves the depth of the color of the image list.
Images Retrieves the ImageList. ImageCollection, which is a
collection of the image objects in the existing control.
Imagesize Specifies or retrieves the size of the images in the image list.
Name Specifies or retrieves the name of the ImageList control.
Method Description
Draw Draws the image.
Event Description
RecreateHandle Occurs when the handle is recreated when the depth value of the
image color changes.
Slide 19 of 3809/20/13
"SplitContainer" Control
The SplitContainer control allows you to create complex user interfaces by dividing the
form into two resizable panels, either horizontally or vertically.
The two panels are separated by a movable bar called as the splitter bar.
The SplitContainer control is used when you want to display the hierarchical information in
one panel and its sub-contents in another panel.
Slide 20 of 3809/20/13
Property Description
BorderStyle Specifies or retrieves the border style of the control using the BorderStyle enumeration.
FixedPanel Specifies or retrieves which panel of the control will not change in size when the
container is resized.
IsSplitterFixed Specifies or retrieves a value indicating whether the splitter present on the control is
fixed or movable.
Panell Retrieves the left or top panel of the control depending on the vertical or horizontal
orientation.
Panel2 Retrieves the right or bottom panel of the control depending on the vertical or horizontal
orientation.
Orientation Specifies or retrieves a value, which indicates the horizontal or vertical orientation of the
panels.
Method Description
On SplitterMoved Triggers the SplitterMoved event.
Event Description
SplitterMoved Occurs when the splitter is moved.
Slide 21 of 3809/20/13

More Related Content

What's hot

Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
Moutasm Tamimi
 
4.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.154.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.15
Rajes Wari
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
Prachi Sasankar
 
Sampling
SamplingSampling
Sampling
alifadakar1
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
Hock Leng PUAH
 
Lecture 9: introduction to computer
Lecture 9: introduction to computerLecture 9: introduction to computer
Lecture 9: introduction to computer
Sultan Omar Shige
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
Ali Mattash
 
Gui in matlab :
Gui in matlab :Gui in matlab :
Gui in matlab :
elboob2025
 
Metadata manual
Metadata manualMetadata manual
Metadata manual
Luis Ezpeleta
 
Executing tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialExecuting tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialaskar_gila
 
Introduction to mapinfo
Introduction to mapinfoIntroduction to mapinfo
Introduction to mapinfo
Tempus Telcosys
 
How to create drill down dashboard
How to create drill down dashboardHow to create drill down dashboard
How to create drill down dashboard
Nilesh Jethwa
 
Arena tutorial
Arena tutorialArena tutorial
Arena tutorial
Amey Kulkarni
 
Chapter 10.1.5
Chapter 10.1.5Chapter 10.1.5
Chapter 10.1.5patcha535
 
Data presentation and reporting cognos tm1
Data presentation and reporting cognos tm1Data presentation and reporting cognos tm1
Data presentation and reporting cognos tm1
veeracynixit
 

What's hot (20)

Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
 
4.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.154.7.14&17.7.14&23.6.15&10.9.15
4.7.14&17.7.14&23.6.15&10.9.15
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
 
Sampling
SamplingSampling
Sampling
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
 
Lecture 9: introduction to computer
Lecture 9: introduction to computerLecture 9: introduction to computer
Lecture 9: introduction to computer
 
4.C#
4.C#4.C#
4.C#
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 
Gui in matlab :
Gui in matlab :Gui in matlab :
Gui in matlab :
 
J charts help
J charts helpJ charts help
J charts help
 
Metadata manual
Metadata manualMetadata manual
Metadata manual
 
Executing tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialExecuting tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorial
 
Spss13 regression
Spss13 regressionSpss13 regression
Spss13 regression
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Introduction to mapinfo
Introduction to mapinfoIntroduction to mapinfo
Introduction to mapinfo
 
How to create drill down dashboard
How to create drill down dashboardHow to create drill down dashboard
How to create drill down dashboard
 
Treeview listview
Treeview listviewTreeview listview
Treeview listview
 
Arena tutorial
Arena tutorialArena tutorial
Arena tutorial
 
Chapter 10.1.5
Chapter 10.1.5Chapter 10.1.5
Chapter 10.1.5
 
Data presentation and reporting cognos tm1
Data presentation and reporting cognos tm1Data presentation and reporting cognos tm1
Data presentation and reporting cognos tm1
 

Viewers also liked

Lyrics Presentation
Lyrics PresentationLyrics Presentation
Lyrics Presentationguest5f3c67
 
34523 c6bfeced66c7718c8ce3358db98ee637
34523 c6bfeced66c7718c8ce3358db98ee63734523 c6bfeced66c7718c8ce3358db98ee637
34523 c6bfeced66c7718c8ce3358db98ee637
robinbad123100
 
THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
  THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000  THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
Hossam Zein
 
Unofficial Transiscript.
Unofficial Transiscript.Unofficial Transiscript.
Unofficial Transiscript.Adrea Benedetti
 
Advanced reading skills storymap
Advanced reading skills storymapAdvanced reading skills storymap
Advanced reading skills storymap
victorgaogao
 
What Heck Is Mobile Marketing? For Hospitality & Tourism
What Heck Is Mobile Marketing? For Hospitality & TourismWhat Heck Is Mobile Marketing? For Hospitality & Tourism
What Heck Is Mobile Marketing? For Hospitality & Tourism
Junction Creative Solutions
 
Balakrishna Prabhus chess Book
Balakrishna Prabhus chess BookBalakrishna Prabhus chess Book
Balakrishna Prabhus chess Book
Champions Chess
 
To integrate promoter-GW-lux fragment onto chromosome of E.coli
To integrate promoter-GW-lux fragment onto chromosome of E.coliTo integrate promoter-GW-lux fragment onto chromosome of E.coli
To integrate promoter-GW-lux fragment onto chromosome of E.coli
Urja Bhatt
 
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيب
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيبKnowledge of Unseen - Ilm-e-ghayeb-علم الغيب
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيب
Iffu Slides
 
柯尔特樵夫.22自动手枪
柯尔特樵夫.22自动手枪柯尔特樵夫.22自动手枪
柯尔特樵夫.22自动手枪Jin Song
 
Laplace1
Laplace1Laplace1
Laplace1
Ana Torres
 
Media mixer
Media mixerMedia mixer
Media mixer
Paolo Casti
 
2009 10 Tcs Supply Lists
2009 10 Tcs Supply Lists2009 10 Tcs Supply Lists
2009 10 Tcs Supply Liststcslj
 
-otoi̇mmün urti̇ker-
-otoi̇mmün urti̇ker--otoi̇mmün urti̇ker-

Viewers also liked (20)

Lyrics Presentation
Lyrics PresentationLyrics Presentation
Lyrics Presentation
 
34523 c6bfeced66c7718c8ce3358db98ee637
34523 c6bfeced66c7718c8ce3358db98ee63734523 c6bfeced66c7718c8ce3358db98ee637
34523 c6bfeced66c7718c8ce3358db98ee637
 
THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
  THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000  THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
THE EGYPTIAN MILITARY AND the arab Israeli Military balance CSIS report 2000
 
Unofficial Transiscript.
Unofficial Transiscript.Unofficial Transiscript.
Unofficial Transiscript.
 
Advanced reading skills storymap
Advanced reading skills storymapAdvanced reading skills storymap
Advanced reading skills storymap
 
What Heck Is Mobile Marketing? For Hospitality & Tourism
What Heck Is Mobile Marketing? For Hospitality & TourismWhat Heck Is Mobile Marketing? For Hospitality & Tourism
What Heck Is Mobile Marketing? For Hospitality & Tourism
 
Balakrishna Prabhus chess Book
Balakrishna Prabhus chess BookBalakrishna Prabhus chess Book
Balakrishna Prabhus chess Book
 
sumit resume8
sumit resume8sumit resume8
sumit resume8
 
To integrate promoter-GW-lux fragment onto chromosome of E.coli
To integrate promoter-GW-lux fragment onto chromosome of E.coliTo integrate promoter-GW-lux fragment onto chromosome of E.coli
To integrate promoter-GW-lux fragment onto chromosome of E.coli
 
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيب
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيبKnowledge of Unseen - Ilm-e-ghayeb-علم الغيب
Knowledge of Unseen - Ilm-e-ghayeb-علم الغيب
 
Automotive presentation
Automotive presentationAutomotive presentation
Automotive presentation
 
柯尔特樵夫.22自动手枪
柯尔特樵夫.22自动手枪柯尔特樵夫.22自动手枪
柯尔特樵夫.22自动手枪
 
Laplace1
Laplace1Laplace1
Laplace1
 
Monetizing portfolio
Monetizing portfolioMonetizing portfolio
Monetizing portfolio
 
Media mixer
Media mixerMedia mixer
Media mixer
 
2009 10 Tcs Supply Lists
2009 10 Tcs Supply Lists2009 10 Tcs Supply Lists
2009 10 Tcs Supply Lists
 
Jiuzhou
JiuzhouJiuzhou
Jiuzhou
 
inam
inaminam
inam
 
PixXx
PixXxPixXx
PixXx
 
-otoi̇mmün urti̇ker-
-otoi̇mmün urti̇ker--otoi̇mmün urti̇ker-
-otoi̇mmün urti̇ker-
 

Similar to Session 2 Bai 2 ve winform

Session 3 Bai 3 ve winform
Session 3 Bai 3 ve winformSession 3 Bai 3 ve winform
Session 3 Bai 3 ve winformmrtom16071980
 
unit3.2 (1).pptx
unit3.2 (1).pptxunit3.2 (1).pptx
unit3.2 (1).pptx
sudharsanm56
 
Combo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.pptCombo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.ppt
Ujwala Junghare
 
CheckBox In C#.pptx
CheckBox In C#.pptxCheckBox In C#.pptx
CheckBox In C#.pptx
SlemanIsmail
 
ToolboxST Basics for safety at all workplace.pptx
ToolboxST Basics for safety at all workplace.pptxToolboxST Basics for safety at all workplace.pptx
ToolboxST Basics for safety at all workplace.pptx
AliyaKhan486794
 
Picture box control
Picture box controlPicture box control
Picture box control
chauhankapil
 
Libre Office Calc Lesson 5: Working with Data
Libre Office Calc Lesson 5: Working with DataLibre Office Calc Lesson 5: Working with Data
Libre Office Calc Lesson 5: Working with Data
Smart Chicago Collaborative
 
engineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.pptengineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.ppt
sharanyak0721
 
Grid view control
Grid view controlGrid view control
Grid view control
Paneliya Prince
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anilguest3373d3
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
subhasis100
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorialguest37ae7f
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
subhasis100
 
qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 featureskrishna3032
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
sasidhar
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
rosaleenm
 
Toolbar
ToolbarToolbar
Toolbar
kuldeep94
 

Similar to Session 2 Bai 2 ve winform (20)

Session 3 Bai 3 ve winform
Session 3 Bai 3 ve winformSession 3 Bai 3 ve winform
Session 3 Bai 3 ve winform
 
unit3.2 (1).pptx
unit3.2 (1).pptxunit3.2 (1).pptx
unit3.2 (1).pptx
 
Combo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.pptCombo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.ppt
 
CheckBox In C#.pptx
CheckBox In C#.pptxCheckBox In C#.pptx
CheckBox In C#.pptx
 
ToolboxST Basics for safety at all workplace.pptx
ToolboxST Basics for safety at all workplace.pptxToolboxST Basics for safety at all workplace.pptx
ToolboxST Basics for safety at all workplace.pptx
 
Picture box control
Picture box controlPicture box control
Picture box control
 
WPF Controls
WPF ControlsWPF Controls
WPF Controls
 
Libre Office Calc Lesson 5: Working with Data
Libre Office Calc Lesson 5: Working with DataLibre Office Calc Lesson 5: Working with Data
Libre Office Calc Lesson 5: Working with Data
 
engineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.pptengineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.ppt
 
Grid view control
Grid view controlGrid view control
Grid view control
 
Unit2
Unit2Unit2
Unit2
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anil
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorial
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 features
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Toolbar
ToolbarToolbar
Toolbar
 

More from mrtom16071980

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010
mrtom16071980
 
7314 l10 pwerpoint
7314 l10 pwerpoint7314 l10 pwerpoint
7314 l10 pwerpoint
mrtom16071980
 
hoc ve xml
hoc ve xmlhoc ve xml
hoc ve xml
mrtom16071980
 
Session 8 Bai 8 ve winform
Session 8 Bai 8 ve winformSession 8 Bai 8 ve winform
Session 8 Bai 8 ve winformmrtom16071980
 
Session 6 Bai 6 ve winform
Session 6 Bai 6 ve winformSession 6 Bai 6 ve winform
Session 6 Bai 6 ve winformmrtom16071980
 
Session 5 Bai 5 ve winform
Session 5 Bai 5 ve winformSession 5 Bai 5 ve winform
Session 5 Bai 5 ve winformmrtom16071980
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winformmrtom16071980
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winformmrtom16071980
 

More from mrtom16071980 (8)

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010
 
7314 l10 pwerpoint
7314 l10 pwerpoint7314 l10 pwerpoint
7314 l10 pwerpoint
 
hoc ve xml
hoc ve xmlhoc ve xml
hoc ve xml
 
Session 8 Bai 8 ve winform
Session 8 Bai 8 ve winformSession 8 Bai 8 ve winform
Session 8 Bai 8 ve winform
 
Session 6 Bai 6 ve winform
Session 6 Bai 6 ve winformSession 6 Bai 6 ve winform
Session 6 Bai 6 ve winform
 
Session 5 Bai 5 ve winform
Session 5 Bai 5 ve winformSession 5 Bai 5 ve winform
Session 5 Bai 5 ve winform
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winform
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winform
 

Recently uploaded

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 

Recently uploaded (20)

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 

Session 2 Bai 2 ve winform

  • 1. Session 2 Trình bày : Võ Ngọc Đạt Email : vongocdatit@gmail.com Điện thoại : 0934.969.680 Slide 1 of 2109/20/13 Grouping and Graphic Controls
  • 2. Slide 2 of 2609/20/13 Module Introduction Windows Forms contains various controls, which you can use to create a graphical user interface (GUI) of an application. One such category is values setting controls, which allow you to select the required values from a list of values. Another category is of the grouping controls, which enable you to organize the related controls in a group. Lastly, the other category is of the graphic controls, which are used to display images on the Windows Forms.
  • 3. Slide 3 of 3809/20/13 Value Setting Controls Value setting controls are controls that allow you to select the desired values from a list of values. There are three types of value setting controls. + RadioButton + CheckBox + CheckedListBox
  • 4. Slide 4 of 3809/20/13 "RadioButton" Control The RadioButton control allows the user to select a single value from the given set of values.
  • 5. Slide 5 of 3809/20/13 Property Description Appearance Specifies or retrieves a value indicating the appearance of the control. The radio button can appear as a normal button or as a Windows button. AutoCheck Specifies or retrieves a value indicating whether the value of the Checked property and the appearance of the control change automatically when the control is clicked. Checked Specifies or retrieves a value indicating whether the control is checked or not. Image Specifies or retrieves the image appearing on the control. Method Description PerformClick Generates a Click event for the control, imitating the click action by the user. Select Activates the control. Event Description CheckedChanged Occurs when there is a change in the value of the Checked property. Click Occurs when the radio button control is clicked.
  • 6. Slide 6 of 3809/20/13
  • 7. Slide 7 of 3809/20/13 "CheckBox" Control The CheckBox control allows you to accept multiple values from a list of values. This control can be used when you want the user to choose one or more options.
  • 8. Slide 8 of 3809/20/13 Property Description Checked Specifies or retrieves a value indicating whether the control is checked. CheckState Specifies or retrieves the state of the control. The control has three states Checked, Indeterminate, and Unchecked. ThreeState Specifies or retrieves a value indicating whether the control will allow three checkstates instead of two. Method Description Select Activates the control. Show Exhibits the control to the user. Event Description CheckedChanged Occurs when the Checked property of the control is changed. CheckStateChanged Occurs when the CheckState property of the control is changed. Click Occurs when the control is clicked.
  • 9. Slide 9 of 3809/20/13
  • 10. Slide 10 of 3809/20/13 "CheckedListBox" Control The CheckedListBox control is a control that allows you to accept multiple values from a list. This control is similar to a ListBox control, but it displays each value in a list along with a check box, which can be checked or unchecked.
  • 11. Slide 11 of 3809/20/13 Property Description CheckedIndices Indicates the collection of checked indexes in the control. CheckedItems Indicates the collection of checked items in the control. CheckOnClick Specifies or retrieves a value whether an item in the control should be ticked when clicked. Items Retrieves the collection of all the items in the control. SelectedIndex Specifies or retrieves the zero-based index of the currently selected item in the control. SelectedItem Specifies or retrieves the currently selected item in the control. SelectedItems Retrieves the collection of the currently selected items in the control. Method Description ClearSelected Unselects the items in the control. GetItemChecked Retrieves a value, which indicates whether the specified item is checked. GetItemText Retrieves the text of the specified item. Event Description ItemCheck Occurs when the checked state of an item changes. SelectedlndexChanged Occurs when the Selectedlndex property of the control changes. SelectedValueChanged Occurs when the SelectedValue property of the control changes.
  • 12. Slide 12 of 3809/20/13
  • 13. Slide 13 of 3809/20/13 Grouping Controls Grouping controls are controls that function as a container for other controls. They allow you to logically organize controls in a group. The common types of grouping controls are: + Panel + GroupBox
  • 14. Slide 14 of 3809/20/13 Graphic Controls Graphic controls are the controls that are used to display graphics on a form. The types of graphic controls commonly used are: + PictureBox + ImageList
  • 15. Slide 15 of 3809/20/13 "PictureBox" Control A PictureBox control is used to display images on a form. You can display images as bitmap, GIF, JPEG,or icon file format using this control. A PictureBox control can be a container that can hold only a single image at a time.
  • 16. Slide 16 of 3809/20/13 Property Description Image Specifies or retrieves the image displayed by the control. ErrorImage Specifies or retrieves the image to be displayed in the control, if an error has occurred while the image is being loaded or the loading process has been cancelled. SizeMode Specifies how the image is displayed in the control. The values for this property are defined in the PictureBoxSizeMode enumeration, which are: AutoSize: Fits the control automatically to the size of the image. CenterImage: Displays the image in the center of the control, if the control's size is larger than the image. Strechlmage: Stretches the image to fit within the size of the control. Method Description Load Loads a graphic in the control.
  • 17. Slide 17 of 3809/20/13 "ImageList" Component The ImageList component in Windows Forms is used to store a collection of images. The images stored in this component are displayed by other controls.
  • 18. Slide 18 of 3809/20/13 Property Description ColorDepth Specifies or retrieves the depth of the color of the image list. Images Retrieves the ImageList. ImageCollection, which is a collection of the image objects in the existing control. Imagesize Specifies or retrieves the size of the images in the image list. Name Specifies or retrieves the name of the ImageList control. Method Description Draw Draws the image. Event Description RecreateHandle Occurs when the handle is recreated when the depth value of the image color changes.
  • 19. Slide 19 of 3809/20/13 "SplitContainer" Control The SplitContainer control allows you to create complex user interfaces by dividing the form into two resizable panels, either horizontally or vertically. The two panels are separated by a movable bar called as the splitter bar. The SplitContainer control is used when you want to display the hierarchical information in one panel and its sub-contents in another panel.
  • 20. Slide 20 of 3809/20/13 Property Description BorderStyle Specifies or retrieves the border style of the control using the BorderStyle enumeration. FixedPanel Specifies or retrieves which panel of the control will not change in size when the container is resized. IsSplitterFixed Specifies or retrieves a value indicating whether the splitter present on the control is fixed or movable. Panell Retrieves the left or top panel of the control depending on the vertical or horizontal orientation. Panel2 Retrieves the right or bottom panel of the control depending on the vertical or horizontal orientation. Orientation Specifies or retrieves a value, which indicates the horizontal or vertical orientation of the panels. Method Description On SplitterMoved Triggers the SplitterMoved event. Event Description SplitterMoved Occurs when the splitter is moved.
  • 21. Slide 21 of 3809/20/13