OOP object oriented programming

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_Click()
Select Case combo1.text
Case “Kerala”
Text1.text = “Trivandrum”
Case “Karnataka”
Text1.text = “Banguloor”
Case “Andhra Pradesh”
Text1.text = “Hydrabad”
End Sub

0 comments:

Post a Comment

 
 
 

sponsors

indiae.in we are in
Indiae.in