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

VB_Lab

Uploaded by

Narenkumar. N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

VB_Lab

Uploaded by

Narenkumar. N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

1.

PAY ROLL PROCESSING

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:

Control Name Property Value


Label Lable1 Caption Banking System
Label Label2 Caption Accno
Label Label3 Caption Name
Label Label4 Caption Date
Label Label5 Caption Enter the Amount
Label Label6 Caption Select the type of Tansaction
Label Label7 Caption Withdrawl Amount
Label Label7 Name lblwith
Label Label8 Caption Deposit Amount
Label Label8 Name lbldepo
Label Label9 Caption Previous Balance
Label Label10 Caption Current Balance
Label Label10 Name lblcur
Combo Combo1 Name cmp1
Text Text1 Text
Text Text2 Text
Text Text3 Text
Text Text4 Text
Text Text5 Text
Text Text6 Text
Text Text7 Text
Text Text8 Text
Text Text1 Name txtaco
Text Text2 Name txtname
Text Text3 Name txtdate
Text Text4 Name txtamt
Text Text5 Name txtwith
Text Text6 Name txtdepo
Text Text7 Name txtpre
Text Text Name txtcur
3. INVENTORY SYSTEM

Property Settings:

Control Name Property Value


Label Label1 Caption Inventory System
Label Label2 Caption Item Name
Label Label3 Caption Item Price
Label Label4 Caption Quantity
Label Label5 Caption Total Amount
Label Label6 Caption Existing Stock
Label Label7 Caption Existing Stock
Command Command1 Name cmdclc
Command Command2 Caption Calculate
Text text1 Text
Text text1 Name txtiname
Text text2 Text
Text text2 Name txtiprice
Text text3 Text
Text text3 Name txtiqty
Text text4 Text
Text text5 Name txttotamt
Text text5 Text
Text text5 Name txtstock
Text text6 Text
Text text6 Name txtcurstock
Combo Combo1

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:

Control Name Property Value


Label Label1 Caption Invoice Systems
Label Label2 Caption Net Amount
Label Label3 Caption Item Name
Label Label4 Caption Item price
Label Label5 Caption Quantity
Text Text1 Text
Text Text1 Name txttot
Text Text2 Text
Text Text2 Name txtite
Text Text3 Text
Text Text3 Name txtpri
Text Text4 Text
Text Text4 Name txtqty
Command Command1 Caption Add
Command Command1 Name cmdadd
MSFlexGrid MSFlexGrid1

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

Components and Property Settings:

Control Name Property Value

Command button cmdAdd Name Add


Command button cmdClear Name Clear
Command button cmdDisplay Name Display
Command button cmdExit Name Exit
Text Box txtRegNo Name Register Number
Text Box txtName Name Student Name
Text Box txtDept Name Department
Text Box txtBooks Name Books Taken
Text Box txtLentDate Name Lent Date
Text Box txtHandoverDate Name Handover Date
Text Box txtFineAmount Name Fine Amount
Label lblRegNo Caption Register Number
Label lblName Caption Student Name
Label lblDept Caption Department
Label lblBooks Caption Books Taken
Label lblLentDate Caption Lent Date
Label lblHandoverDate Capton Handover Date
Label lblFineAmount Caption Fine Amount
Ex. No: 6 STUDENT INFORMATION SYSTEM

Aim:

To implement a Visual Basic program to maintain the student database.

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

Procedure to Create Table in MS Access :

AddIns->Visual Data Manager

File->New->Microsoft Access ->version 7.0

Database Name: Student

Right Click on Database Window and Create New Table

Enter the Table name

Add the field names, type of the fields, etc and click the build table command button.

Property Settings:

Control Name Property Value

Command button command1 Name cmdadd

Command button command2 Name cmdsave

Command button command3 Name cmddelete

Command button command4 Name cmdmodify

Command button command5 Name cmdexit

Textbox Text1 name txtregno

Textbox Text2 name txtname


7. TAX AMOUNT CALCULATION
Aim:
To implement a Visual Basic program to calculate tax amount.
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 Calculate and close command button.
4. Stop
Property Settings:
Control Name Property Value
Command button command1 Name cmdclculate
Command button command Name cmdclose
Textbox Text1 name txtmarpri
Textbox Text2 name txttaxrate
Textbox Text3 name txttaxamt
Textbox Text4 name txtnetpri
Label Label1 Caption Marked Price
Label Label2 Caption Tax Rate
Label Label3 Caption Tax Amount
Label Label4 Captio Netprice
8. ELECTRICITY BILL
Aim:
To implement a Visual Basic program to calculate electricity bill.
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 Calculate Bill command button.
4. Stop
Property Settings:
Control Name Property Value
Command button command1 Name cmdclc
Textbox Text1 name txtnum
Textbox Text2 name txtname
Textbox Text3 name txtunit
Textbox Text4 name txtamt
Label Label1 Caption Consumer Number
Label Label2 Caption Consumer Name
Label Label3 Caption Units Consumed
Label Label4 Caption Total Amount

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:

To implement a Visual Basic program to maintain the Telephone directory..

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

Procedure to Create Table in MS Access :

AddIns->Visual Data Manager

File->New->Microsoft Access ->version 7.0

Database Name: Student

Right Click on Database Window and Create New Table

Enter the Table name

Add the field names, type of the fields, etc and click the build table command button.

Property Settings:

Control Name Property Value

Command button command1 Name cmdadd

Command button command2 Name cmdsave

Command button command3 Name cmddelete

Command button command4 Name cmdmodify

Command button command5 Name cmdexit

Textbox Text1 name txtregno

Textbox Text2 name txtname


10. MARK SHEET PROCESSING

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

You might also like