First of all we will list out all the items that we need to cover before starting this Database Project.
1. Form Object
2. Command Button
3. TextBox
4. Combo Box
5. List Box
6. Option Button
7. Check Box
8. Shapes
9. Labels
10. Common Dialog Control 6.0
11. Frame
12. Picture Box
13. Date Time Picker
14. MsFlex Grid
15. DataGrid
16. Creating Tool Bar
17. Creating Menu
18. Database Interaction (Connectivity, Retrieval, Insertion, Updation, Deletion)
19. ADODC
20. MDI (Multiple Document Interface) Form (Used when you have more than one forms)
21. Module
22. Crystal Report
23. Making Executable
24. Packaging and Deployment (How to make Setup File)
So we are going to cover each of these objects one by one with examples and then will start Database Project in which we will use all of these combinely.
1. Form: Form is the Container of objects i.e we use it to design our front end. we place different objects on one form.
in one project we can have multiple forms. we can navigate between them by calling the respective form like if Form1 and Form2 are two forms then to call form1 just code like
Load Form1
Form1.Show
Form1.Setfocus
Each and every object has its own Methods and Properties. we just call their methods and change values to their properties and get our task done. so if you goto code window in vb you will get two combo boxes at the top. the left one is populated with the object names and when you select an object from this combo, the right one is populated with the events related to that specific object so you do code on specific events. for example if i want to change the back color (property) of the form when i click it then i must first goto code window and select form object from the left combo. then from right combo i will select click
this will give the the environment like below
Private sub Form_Click()
End sub
so all code that i need to fire on click event should be typed inside these two lines. right now i want to change the form color so i do as
Private sub Form_Click()
Me.Backcolor=vbgreen
End sub
here Me refers to the current form. you can also put the object name instead like
Form1.Backcolor=vbgreen
form has many events and properties which we will cover in different small examples. for now as it is the starting point so just keep in mind that we use form as the Container of objects. Its the main object in our Fornt-End designing.
No comments:
Post a Comment