Documente Academic
Documente Profesional
Documente Cultură
To create a form and interact with the mouse and keyboard using VB.
PROGRAM 2
To create an application with the data types, variants, and array using VB.
PROGRAM 3
Module Module1
Sub Main()
Dim a As Integer
Dim b As Integer
a = 10
b=5
'Sum of a And be
Console.ReadLine()
End Sub
End Module
PROGRAM 4
Vb program to create calculator application to perform addition, subtraction, multiplication and division
cure function for the calculation.
num1 = TextBox1.Text
num2 = TextBox2.Text
sum=num1+num2
difference=num1-num2
quotient=num1/num2
Label1.Text=sum
Label2.Text=difference
Label3.Text = product
Label4.Text = quotient
End Sub
PROGRAM 5
To Create an database using data control and implement it in an application using VB.
https://bedeveloper.wordpress.com/vb-
simple-program/1-write-a-vb-program-to-
find-the-prime-numbers-between-1-to100-
and-display-it-onto-the-form/
PROGRAM 7
Write a VB program to find the prime
numbers between 1 to100 and display it onto
the form.
Next
If p = 1 Then
Print n
End If
Next
End Sub
PROGRAM 8
PROGRAM 9
PROGRAM 10
Text2.Text = Year(age)
Text3.Text = Month(age)
Text4.Text = Day(age)
Text5.Text = Hour(age)
Text6.Text = Minute(age)
Text7.Text = Second(age)
End Sub
Write a VB Program to design a simple calculator to perform addition, subtraction, multiplication and
division(Use functions for the calculations).
Design a User Interface (UI) to accept the student details such as name, department and total marks.
Validate the input data and calculate the percentage and division.
Design a VB application which has MDI and Child forms. Create a menu having the items such as file
(New, Open),Format (Font, Regular, Bold ,Italic) and Exit in the MDI form. Also create a text box and use
a Common Dialog Box control for changing the font, fore color and back color of the text box.
VB program to Encrypt and Decrypt a string. (Use Rnd() to generate the Encryption and Decryption
keys).
Create a Vending machine application ,that display images for four snacks and corresponding labels that
indicates the number for each snack. The GUI should contain a text box in which the user specifies the
number of desired snack. When the dispense snack button is clicked, it should display on a label the
name of the snack dispensed. At end it should print (display)the bill of the product.
Write a VB Program to Validate the username and password form the database and display the
appropriate message.(Use Data Control)
Write an application for Airline Reservation System, which allows the user to book ticket on a particular
date for a particular type of class. At the end, once the ticket is booked, if should display a boarding pass
indication the person’s seat no., type of class and total fare. Input validations should be done properly.
You can use arrays or databases for storing the information.
Design a VB application to accept the Item Details (Item ID, Item Name, MFD Date, Unit Of Measure and
RatePerUnit).Item Id should be a system generated ID. The application should allow operations –Add,
Modify, Delete ,Update and Navigations of the items. Use ADO Date controls and Grid controls.
Design a VB application to record the employee details such as EmpId, EmpName, Designation and
BaiscPay . Calculate the DA, HRA, Deduction and Gross Salary.(Make the necessary assumptions )Use
Select .. case for decision making.
Design a mini ATM application which validates the user on the basis of its account no., and password.
After the validation customer is allowed to do many operations such as withdrawal, mini statement,
checking balance etc, Application should perform the concerned operation and the account of the user
should be updated accordingly.
VB program to calculate the simple interest and compound interest. Use DLLs for the calculation.
https://www.computercoursestudy.com/2016/09/student-mark-list-program-in-visual.html
PROGRAM 1 1
MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = “RollNo”
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = “Stud Name”
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = “Class”
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = “Sub1”
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = “Sub2”
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = “Sub3”
MSFlexGrid1.Col = 7
MSFlexGrid1.Text = “Total”
MSFlexGrid1.Col = 8
MSFlexGrid1.Text = “Percentage”
MSFlexGrid1.Col = 9
MSFlexGrid1.Text = “Grade”
End Sub
PROGRAM 12
Write a VB application to calculate simple interest.
End Sub
SIcalculator.Hide
End Sub
End Sub
End Sub
End Sub
Private Sub txtPrincipal_Change()
principal = Val(txtPrincipal.Text)
End Sub
End Sub
https://notesformsc.org/programming/visual-basic-6-tutorial/how-to-write-a-visual-basic-program/
http://bca-rises.blogspot.com/2012/08/write-program-in-visual-basic-to.html
3) Develop an application that accepts principal amount, rate of interest and time from the user.
Then it computes the simple interest and displays
it.
4) Obtain age of a person and determine through a function whether it falls within range of 18-
40 years
Exit
7) Create a VB application that lets the user decide the height and width of the shape through
scroll bars.
PROGRAM 13
Design an application that accepts an item name from the user and adds it to a list box.
Drag and drop two labels, a button and a ListBox control on the form.
Set the Text property of the first label to provide the caption "Choose your favourite
destination for higher studies".
Set the Text property of the second label to provide the caption "Destination". The text on
this label will change at runtime when the user selects an item on the list.
Click the listbox and the button controls to add the following codes in the code editor.
9) Create an application that offers various food items to select from and a mode of payment. It
then displays the total amount payable.