VB_Lab
VB_Lab
Aim:
To implement a Visual Basic program to calculate employee total earnings.
Procedure :
1. Start
2. Design the form with text boxes, command buttons and label controls. Display appropriate
messages in label boxes
3. Write the script in the click event on the process command button.
4. Stop
Property Settings:
Control Name Property Value
Command button command1 Name cmdclc
Command Button Command2 Name cmdclose
Command button command1 Caption Calculate
Command Button Command2 Caption Close
Textbox Text1 name txtbp
Textbox Text2 name txthra
Textbox Text3 name txtda
Textbox Text4 name txtcon
Textbox Text5 name txtlic
Textbox Text6 name txtinc
Textbox Text7 name txtloa
Textbox Text8 name txtoth
Textbox Text9 name txtgs
Textbox Text10 name txtns
Textbox Text1 Text
Textbox Text2 Text
Textbox Text3 Text
Textbox Text4 Text
Textbox Text5 Text
Textbox Text6 Text
Textbox Text7 Text
Textbox Text8 Text
Textbox Text9 Text
Textbox Text10 Text
Label Label1 Caption Pay Roll Processing
Label Label2 Caption Basic Pay
Label Label3 Caption HRA(15%)
Label Label4 Caption DA(40%)
Label Label5 Caption Conveyance(10%)
Label Label6 Caption LIC
Label Label7 Caption Income Tax
Label Label8 Caption Loans
Label Label9 Caption Others
Label Label10 Caption Gross Salary
Label Label11 Caption Net Salary
2. SAVING BANK ACCOUNT FOR BANKING
Aim:
To implement a Visual Basic program to prepare saving bank account for banking.
Procedure :
1. Start
2. Design the form with text boxes , combo box and label controls. Display appropriate
messages in label boxes
3. Write the script in the click event on the calculate command button.
4. Stop
Property Settings:
Property Settings:
Aim:
To implement a Visual Basic program to prepare Inventory system .
Procedure :
1. Start
2. 2. Design the form with text boxes and command buttons. Display appropriate messages in label
boxes
3. 3. Write the script in the click event on the process command button.
4. 4. Stop
4. INVOICE SYSTEM
Property Settings:
Aim:
To implement a Visual Basic program to prepare Invoice system .
Procedure :
1. Start
2. Design the form with text boxes and command buttons. Display appropriate messages in label
boxes
3. Write the script in the click event on the process command button.
4. Stop
5. Library Management
Aim:
Implement a Visual Basic program to maintain the library management system.
Procedure:
1. Start
2. Design the form with text boxes, Label boxes, Data Control and command buttons.
Display appropriate messages in label boxes.
3. Write the script in the click event on the add and close command button.
4. Stop
Aim:
Procedure :
1. Start
2. Design the form with text boxes, Label boxes, Data Control and command buttons. Display
appropriate messages in label boxes.
3. Write the script in the click event on the process command button.
4. Stop
Add the field names, type of the fields, etc and click the build table command button.
Property Settings:
Form Design
SOURCE CODE
Private Sub cmdclc_Click()
Dim sum As Single
Dim unit As Integer
If txtnum.Text = "" Or txtname.Text = "" Then
MsgBox "Enter Consumer Number and Name"
End If
Ex. No: 9 Telephone directory maintenance
Aim:
Procedure :
1. Start
2. Design the form with text boxes, Label boxes, Data Control and command buttons. Display
appropriate messages in label boxes.
3. Write the script in the click event on the add and close command button.
4. Stop
Add the field names, type of the fields, etc and click the build table command button.
Property Settings:
Aim:
To implement a Visual Basic program to prepare student marksheet.
Procedure :
1. Start
2. Design the form with text boxes , command buttons and label controls. Display appropriate
messages in label boxes
3. Write the script in the click event on the calculate command button.
4. Stop
Property Settings:
Control Name Property Value
Command button command1 Name cmdclc
Command button command1 Caption Calculate
Textbox Text1 name txtsub1
Textbox Text2 name txtsub2
Textbox Text3 name txtsub3
Textbox Text4 name txtsub4
Textbox Text5 name txtsub5
Textbox Text6 name txttot
Textbox Text7 name txtper
Textbox Text8 name txtgra
Label Label1 Caption Marksheet
Label Label2 Caption Tamil
Label Label3 Caption English
Label Label4 Caption Maths
Label Label5 Caption Science
Label Label6 Caption Social
Label Label7 Caption Total
Label Label8 Caption Percentage
Label Label9 Caption Grade
Label Label10 Caption Remark
Label Label11 Caption
Label Label11 Name lblrem