Visual Basic 3rd Semester (Amit)
Visual Basic 3rd Semester (Amit)
Submitted by Navita Aggarwal Course - BBA ( Gen) Enrolment 06224001710 Semester/ shift- IIIrd / IInd
Assignment -1
1) Design an application to print in the message box welcome to VB. Coding : Private Sub Command1_click() Msgbox (welcome to vb) End Sub
AMIT
2) Design an application to perform the arithmetic operations of two numbers entered by the user. CODING:
a) FOR ADDITION:Private Sub command1_ click () Text3.text = val (text1.text) + val (text2.text)
C) FOR MULTIPLICATION:-
End Sub
OUTPUTS: CODE FOR COMMAND 1 Private Sub Command1_ click () Msgbox (hello + text1.text) End Sub
CODE FOR COMMAND 3 Private Sub Command3_ click () End End Sub
4) Design an application such that when the user changes the text in text box the background of the form changes.
Design an application such that when the user changes the text in text box the background of the form changes. Output:-
5) Design an application to show the usage of different events. Labels: Label 1- mouse move
Label 2- mouse down Label 3- mouse up OUTPUT: For mouse move : Private Sub Lable1_ mouse move ()
FOR MOUSE UP: Private Sub Lable3_ mouse up () Text1.text = up End Sub