0% found this document useful (0 votes)
81 views

Event Driven Programming Language

This document discusses event driven programming in VB and the integrated development environment (IDE). It describes different types of events like keyboard, mouse, and focus events. It also discusses controls like labels, text boxes, command buttons, and forms. It provides details about designing a form at design time by placing controls and setting properties, and then interacting with the user at runtime. It gives an example of a form with labels, text boxes, and a combo box to display the capitals of Indian states based on the selected state.

Uploaded by

midhungbabu88
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Event Driven Programming Language

This document discusses event driven programming in VB and the integrated development environment (IDE). It describes different types of events like keyboard, mouse, and focus events. It also discusses controls like labels, text boxes, command buttons, and forms. It provides details about designing a form at design time by placing controls and setting properties, and then interacting with the user at runtime. It gives an example of a form with labels, text boxes, and a combo box to display the capitals of Indian states based on the selected state.

Uploaded by

midhungbabu88
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 9

Event Driven

Programming
Language
EDP ------ VB
IDE
Integrated
Development
Environment
Event
Event is an action
taken by a user
1. Keyboard
Events
2. Mouse Events
3. Focus Events
Control is an object
which is having
some Properties
and characteristics
Eg: Controls
1. Label --
Properties and
characteristics
2. Text Box
3. Command
Button
4. Form
Project
Design Time
1. Decide the
Controls
2. Place the
Controls
3. Set the
Properties
4. Write the codes
Run Time
Interacting the user
through the
interface
Form
Name --- Form1
Caption - Simple
Calculator
Labe1,2,3
Caption --- Enter
the first number
Text Box
Private Sub
Command1_Click
Q.3. Find the
Capitals of
Indian states.
Private Sub
Form_Load()
Combo1.AddItem
("Kerala")
Combo1.AddItem
("Karnataka")
Combo1.AddItem
("Andhra
Pradesh")
Combo1.AddItem
("Maharashtra
")
Combo1.AddItem
("Thamil
Nadu")
Combo1.AddItem
("West
Bangal")
End Sub
Private Sub
Combo1_Clic
k()
Select Case
combo1.text
Case “Kerala”
Text1.text =
“Trivandrum”
Case “Karnataka”
Text1.text =
“Banguloor”
Case “Andhra
Pradesh”
Text1.text =
“Hydrabad”
End Sub

You might also like