Watch video belowSample Codes Here:Private Sub lblDisplay_Click()If lblDisplay.Caption = "ADDITION" ThentxtResult.Text = Val(txtFN.Text) + Val(txtSN)ElseIf lblDisplay.Caption = "DIVISION" ThentxtResult.Text = Val(txtFN.Text) / Val(txtSN)ElseIf lblDisplay.Caption = "MULTIPLICATION" ThentxtResult.Text = Val(txtFN.Text) * Val(txtSN)ElseIf lblDisplay.Caption = "SUBTRACTION" ThentxtResult.Text = Val(txtFN.Text) - Val(txtSN)End IfPrivate Sub optAdd_Click()lblDisplay.Caption = "ADDITION"End SubOption buttons codes:Private Sub optDiv_Click()lblDisplay.Caption = "DIVISION"End SubPrivate Sub optMul_Click()lblDisplay.Caption = "MULTIPLICATION"End SubPrivate Sub optSub_Click()lblDisplay.Caption = "SUBTRACTION"End Sub
Blog Post
Biyernes, Marso 6, 2015
Visual Basic 6.0 : Basic Calculator
Mga etiketa:
YouTube Video Tutorial
Mag-subscribe sa:
I-post ang Mga Komento (Atom)
0 (mga) komento:
Mag-post ng isang Komento