0% found this document useful (0 votes)
42 views2 pages

Activity 4 Lab

This document contains the property settings for various controls on a form for a Visual Basic application, including: - Two command buttons named cmdQuit and cmdGreet - Two text boxes named txtFName and txtLName - Three labels named lblOutput, lblFName, and lblLName - Instructions to add these controls to a form named frmMain, set their properties, and add code to the command buttons to output a greeting message to the label when clicked.

Uploaded by

api-287763322
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Activity 4 Lab

This document contains the property settings for various controls on a form for a Visual Basic application, including: - Two command buttons named cmdQuit and cmdGreet - Two text boxes named txtFName and txtLName - Three labels named lblOutput, lblFName, and lblLName - Instructions to add these controls to a form named frmMain, set their properties, and add code to the command buttons to output a greeting message to the label when clicked.

Uploaded by

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

COMMAND 2

a)Name - cmdQuit
b)Caption Quit
c)Width 1695
d)Height 495
e)Top 3120
f)Left - 3960

TEXTBOX1

COMMAND 1
TEXTBOX2
a)Name - txtFName

b)Font - Arial, Size 14, Regular


a)Name - cmdGreeta)Name
txtLName
c)Text None. Erase Default Value
b)Caption - Greet b)Font
- Arial, Size 14, Regular
d)Width - 3495
c)Width - 1695
c)Text - None. Erase Default Value
e)Height - 495
d) Height - 495
d)Width 3495
f)Top - 480
e)Top - 3120
e)Height 495
g)Left 2160
f)Left 2160
f)Top 1080

g)Width 1575
g)Left 2160

h)Height 495

ACTIVITY 4
LABEL3
LABEL1
LABEL2

a)Name lblOutput
a)Name - lblFName
a)Name lblLName
b)BackColor - Light Blue
b)BackStyle - Transparent
b)BackStyle
Transparent
c)Caption - None
c)Caption - First Name
c)Caption - Last Name
d)Font - Arial, Size 14, Italic
d)Font - Arial, Size 14, Regular
d)Font
Arial,
Size
14,
Regular
e)Width 5295
e)Top - 600
e)Top

1200
f)Height 975
f)Left - 360
f)Left 360
g)Top 1800
g)Width - 1575
g)Width

1575
h)Left - 360
h)Height 495
h)Height 495
i)Width 1575
j)Height 495

3. Drag three (3) Labels to the Form.


4. Add two (2) TextBoxes to the Form.
5. Set the corresponding properties for controls.
FORM1

a)Name - frmMain
b)Caption - VB
Application
c)MaxButton - False
d)StartUpPosition Center Screen
e) Height - 4410
f) Width - 6195
g) BackColor White

1. Create a new project.


2. For the Form control, set the following properties:

ACTIVITY 4

6. Incorporate two (2) Command buttons to the Form.


7. Integrate the codes needed on code editor window.

Private Sub cmdquit_Click()


Private Sub cmdGreet_Click()
end
lblOutput.Caption = "Hello " &
End Sub
End Sub

Run the application and see how your new application works.
Save your work as Activity4.

txtFName.Text & " " & txtLName.T

8.
9.

You might also like