Professional Documents
Culture Documents
Name : XYZ
Class : BBA – IIIA (SS)
Summary of marks
Aggregate
---------------------------------------------
Sem -1 70%
Sem-2 60%
----------------------------------------------
Average 65%
-----------------------------------------------
2. Without using object, print the two nos on the form 10 & 20.
(i) During Mouse Press, Will Add the two nos & display Sum =30. Also the mouse
pointer will change to Hourglass.
(ii) After KeyPress, will Display the Product=200.
3. Change the Properties of Form to hide all the three button (Minimize,Maximize & Restore)
4. Change the Properties of Form to hide all the two button (Minimize & Maximize).Also
Change the Change the Picture on Background of Form to any Picture during Run Window like
Sunset.
6. Design a form in which mouse pointer becomes hourglass when anywhere clicked on form .
7 . Design a form in which the sum of 2 numbers gets printed when anywhere clicked on the
form.
* The sum of 2 numbers gets printed when anywhere clicked on the form.
* The subtraction of 2 numbers gets printed when any key pressed
1. Design a Form with 1 textbox & 1 Label. Name the Text box as TxtOne & Label as
LblOne. Change the Caption of Both Textbox & Label as “Welcome To
VB”.Change the Appearance of Textbox & Label to make them Look-Alike.
2. Design a Form with 2 Textbox & 1 Command Button. Name the Textbox as Txt1 &
Txt2. Clear their Text during the design time. Name the Command Button as
CmdCopy & Write Copy in the Caption of Command Button.
Write the Code in the Click Event of Command Button, as to Copy the Content of
Txt1 into Txt2.
3. Design a Form with 2 Textbox . Name the Textbox as Txt1 & Txt2.Write Suitable
code so that whatever you write in the Txt1 is also written in Txt2.
4. Design a Form Do not put any control , Just Write the Caption of Form as “My First
Program”. Also Write Your Name in top left Corner in the Form.
6. Design a Form with With 3 Text Box, to enter Name of Student, Fathers
Name & Date Of Birth. Display a Message Box on the click event of Command
Button to Display “Name S/o Fathers Name & DOB”.
Assignment 3 using Option Button, Check Boxes and Shape Control
Q1. WAP to Show shape corresponding to the Option Selected using Option button &
Shape Control. Initially during form load no option should be selected & shape is also not
displayed.
Q2. WAP to Draw shape corresponding to Circle, Square (Rounded & Not Rounded), Rectangle
(Rounded & Not Rounded) with Height & Width Specified using option button in a frame,
checkbox in another frame, Textbox & label for height & width in another frame. Use Command
button to draw the shape. Also initially make sure that no option button, check box is selected &
Shape Control is also not visible
Q3. WAP to show the form as below corresponding to the Option selected using Option button &
Check box Control. Change the font style and font color of the text typed in the name of the
student and address text boxes.
Assignment4 using Option Button, Check Boxes, ScrollBar and Shape
Control
WAP to Increase / decrease the size of Shape Control using Scroll Bar.
Assignment5 – List Box Q1. WAP that uses a List Box Control. Give
an Option for the Following:-
1. To add a new Item in the List box from Text
Box.
2. Display the Updated Total No of Item in the
List
List Box 3. Display the Item Corresponding to
a. 1st Item in List
b. Last Item in List
c. Item at a specific position from Top
4. Delete the Item from the list option :
a. 1st Item Delete
b. Last item Delete
c. Delete the Selected Item
Note after each operation (Add, Delete) from List the
Text Box
total no item should be updated.
WAP using System Control (Drive Control, Directory Control, File Control) and Image Control.
Perform he Following Tasks:
o Select the file having extension .jpg, .bmp and .gif and then show the image in image
control
o Set the stretch property true and notice the effect
End Sub
Img1.Stretch = False
If TxtHeightImg.Text <> "" Then
Img1.Height = Val(TxtHeightImg.Text)
Else
Img1.Height = Img_Height
End If
If TxtWidthImg.Text <> "" Then
Img1.Width = Val(TxtWidthImg.Text)
Else
Img1.Width = Img_Width
End If
Img1.Left = Img_Left
Img1.Top = Img_Top