SlideShare a Scribd company logo
1 of 21
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.15Rajes Wari
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and eventsPrachi Sasankar
 
Lecture 9: introduction to computer
Lecture 9: introduction to computerLecture 9: introduction to computer
Lecture 9: introduction to computerSultan Omar Shige
 
Gui in matlab :
Gui in matlab :Gui in matlab :
Gui in matlab :elboob2025
 
Executing tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialExecuting tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialaskar_gila
 
How to create drill down dashboard
How to create drill down dashboardHow to create drill down dashboard
How to create drill down dashboardNilesh Jethwa
 
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 tm1veeracynixit
 

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 c6bfeced66c7718c8ce3358db98ee637robinbad123100
 
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 2000Hossam 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 storymapvictorgaogao
 
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 & TourismJunction Creative Solutions
 
Balakrishna Prabhus chess Book
Balakrishna Prabhus chess BookBalakrishna Prabhus chess Book
Balakrishna Prabhus chess BookChampions 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.coliUrja 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
 
2009 10 Tcs Supply Lists
2009 10 Tcs Supply Lists2009 10 Tcs Supply Lists
2009 10 Tcs Supply Liststcslj
 

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
 
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.pptUjwala Junghare
 
CheckBox In C#.pptx
CheckBox In C#.pptxCheckBox In C#.pptx
CheckBox In C#.pptxSlemanIsmail
 
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.pptxAliyaKhan486794
 
Picture box control
Picture box controlPicture box control
Picture box controlchauhankapil
 
engineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.pptengineeringdsgtnotesofunitfivesnists.ppt
engineeringdsgtnotesofunitfivesnists.pptsharanyak0721
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769subhasis100
 
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 Tutorialsasidhar
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769subhasis100
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anilguest3373d3
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorialguest37ae7f
 

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 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
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anil
 
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
 
Toolbar
ToolbarToolbar
Toolbar
 

More from mrtom16071980

Bai giang-ms-excel-2010
Bai giang-ms-excel-2010Bai giang-ms-excel-2010
Bai giang-ms-excel-2010mrtom16071980
 
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

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

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