SlideShare a Scribd company logo
1 of 41
electroteam__@hotmail.com
Electro-Team
Interesting Education
ListBox & CheckedListBox
DialogBox
Display Toolbox
Add 2 Buttons & 1 ListBox
Display Properties Window
Select item property of ListBox
Add items of ListBox
Press ok to precede
Rename Form1 by changing Text property
Change Font property for all controls
Event
Button_Click
Changing Form1.BackColor
Double click Button1
Event
ListBox1_SelectedIndexChanged
Changing Form1.BackColor
Double click ListBox1
Add ListBox2
Change Text Property of Button1
Event
Button_Click
Copy Item from ListBox1 to ListBox2
Event
Button_Click
Moving Item from ListBox1 to ListBox2
Clear all Items
Event
Button_Click
Edit selected Item
Event
Button_Click
Error
No selection made mean ListBox1.SelectedIndex = -1 , this
value will produce an Error.
ListBox1.Items(ListBox1.SelectedIndex) = TextBox1.Text
ListBox1.Items
White
Red
Black
yellow
ListBox1.SelectedIndex
0
1
2
3
Copy selected Item to Textbox
Event
ListBox1_SelectedIndexChanged
Replace ListBox by CheckedListBox
Event
Button_Click
Get all items in message box
Code illustration
Dim X As New System.Text.StringBuilder
For I = 0 To 3
X.Append(CheckedListBox1.Items(I))
X.Append(" ")
Next
MessageBox.Show(X.ToString())
System.Text NameSpace
StringBuilder Class
Append(item) Append (String)
ToString Method
Dim X As New System.Text.StringBuilder
For Each item In CheckedListBox1.Items
X.Append(item) ‘items
X.Append(" ") ‘spaces
Next
MessageBox.Show(X.ToString())
System.Text NameSpace
StringBuilder Class
Items Property
Append(item) Append (String)
ToString Method
Modify Last Code
NameSpace
container for a set of identifiers
(names)
Class
A set of instance information for a
real content.
Property Property
Append (String)
Appends a copy of the specified
string to this instance.
ToString
(Method)
convert the StringBuilder object to a
String object before you can pass
the string represented by the
StringBuilder object to the user
interface.
Code illustration
Listbox+checkedlistbox

More Related Content

More from Spy Seat

Kazdoura & Luciano Jan – Aug 2016 Cost Analysis
Kazdoura & Luciano  Jan – Aug 2016 Cost AnalysisKazdoura & Luciano  Jan – Aug 2016 Cost Analysis
Kazdoura & Luciano Jan – Aug 2016 Cost AnalysisSpy Seat
 
Software Design
Software DesignSoftware Design
Software DesignSpy Seat
 
Visual Basic 6 Data Base
Visual Basic 6 Data BaseVisual Basic 6 Data Base
Visual Basic 6 Data BaseSpy Seat
 
Visual Basic ADO
Visual Basic ADOVisual Basic ADO
Visual Basic ADOSpy Seat
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6Spy Seat
 
Create Contacts program with VB.Net
Create Contacts program with VB.NetCreate Contacts program with VB.Net
Create Contacts program with VB.NetSpy Seat
 
Create Your first website
Create Your first websiteCreate Your first website
Create Your first websiteSpy Seat
 
How Computer work
How Computer workHow Computer work
How Computer workSpy Seat
 
visual basic 6 Add Merlin
visual basic 6 Add Merlin visual basic 6 Add Merlin
visual basic 6 Add Merlin Spy Seat
 
My Bachelor project slides
My Bachelor project slides My Bachelor project slides
My Bachelor project slides Spy Seat
 
Difference between asp and php
Difference between asp and phpDifference between asp and php
Difference between asp and phpSpy Seat
 
Error handling
Error handlingError handling
Error handlingSpy Seat
 
I/O PHP Files and classes
I/O PHP Files and classesI/O PHP Files and classes
I/O PHP Files and classesSpy Seat
 
Php session 3 Important topics
Php session 3 Important topicsPhp session 3 Important topics
Php session 3 Important topicsSpy Seat
 
Notify progresscontrol
Notify progresscontrolNotify progresscontrol
Notify progresscontrolSpy Seat
 
If then vs select case
If then vs select caseIf then vs select case
If then vs select caseSpy Seat
 
If then vb2010
If then vb2010If then vb2010
If then vb2010Spy Seat
 
Date & time picker
Date & time pickerDate & time picker
Date & time pickerSpy Seat
 
Visual Basic Calculator
Visual Basic CalculatorVisual Basic Calculator
Visual Basic CalculatorSpy Seat
 

More from Spy Seat (20)

Kazdoura & Luciano Jan – Aug 2016 Cost Analysis
Kazdoura & Luciano  Jan – Aug 2016 Cost AnalysisKazdoura & Luciano  Jan – Aug 2016 Cost Analysis
Kazdoura & Luciano Jan – Aug 2016 Cost Analysis
 
Software Design
Software DesignSoftware Design
Software Design
 
Visual Basic 6 Data Base
Visual Basic 6 Data BaseVisual Basic 6 Data Base
Visual Basic 6 Data Base
 
Visual Basic ADO
Visual Basic ADOVisual Basic ADO
Visual Basic ADO
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Create Contacts program with VB.Net
Create Contacts program with VB.NetCreate Contacts program with VB.Net
Create Contacts program with VB.Net
 
Create Your first website
Create Your first websiteCreate Your first website
Create Your first website
 
How Computer work
How Computer workHow Computer work
How Computer work
 
visual basic 6 Add Merlin
visual basic 6 Add Merlin visual basic 6 Add Merlin
visual basic 6 Add Merlin
 
My Bachelor project slides
My Bachelor project slides My Bachelor project slides
My Bachelor project slides
 
Difference between asp and php
Difference between asp and phpDifference between asp and php
Difference between asp and php
 
Error handling
Error handlingError handling
Error handling
 
I/O PHP Files and classes
I/O PHP Files and classesI/O PHP Files and classes
I/O PHP Files and classes
 
Php session 3 Important topics
Php session 3 Important topicsPhp session 3 Important topics
Php session 3 Important topics
 
Notify progresscontrol
Notify progresscontrolNotify progresscontrol
Notify progresscontrol
 
If then vs select case
If then vs select caseIf then vs select case
If then vs select case
 
If then vb2010
If then vb2010If then vb2010
If then vb2010
 
For next
For nextFor next
For next
 
Date & time picker
Date & time pickerDate & time picker
Date & time picker
 
Visual Basic Calculator
Visual Basic CalculatorVisual Basic Calculator
Visual Basic Calculator
 

Listbox+checkedlistbox