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

Visual Basic: Coding The Program

Uploaded by

hannahlemence
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Visual Basic: Coding The Program

Uploaded by

hannahlemence
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Visual Basic

Coding the Program


Hello Program
OBJECT PROPERTY SETTING
Form Name frmHello
Caption The Hello Program
Command Button Name cmdExit
Caption E&xit
Command Button Name cmdClear
Caption &Clear
Command Button Name cmdHello
Caption &Display Hello
TextBox Name txtDisplay
MultiLine True
EXIT Button - cmdExit
Private Sub cmdExit_Click{}

End (or Unload Me)

End Sub
Display Hello Button - cmdHello
Private Sub cmdHello_Click{}

txtDisplay.Text = “Hello World”

End Sub
Clear Button - cmdClear
Private Sub cmdClear_Click{}

txtDisplay.Text = “ ”

End Sub
Clear Button - cmdClear
Private Sub cmdClear_Click{}

txtDisplay.Text = “ ”

End Sub
PERFORMANCE
TASK
Simple Calculator
OBJECT PROPERTY SETTING
Form Name Basic Calculator
Caption
TextBox Name Text1
Caption
TextBox Name Text2
Caption
Label Name Label1
Caption =
Label Name Label2
Caption
Command Button Name
Caption Add
Command Button Name
Caption Subtract
Command Button Name
Caption Multiply
On the given VB code on the link
https://uforum.forumotion.com/t2465-tutvisual-basic-6-0-calculato
r

Change Val(Text3.Text) into Label2.Caption

Do all the MDAS on the Calculator


Design your Form with Background
Change the Font Size of your Text (must be bigger and readable)
Take a Video of your Output (VB code and Design)

You might also like