KALKULATOR TANPA KEYPRESS



Private Sub Command1_Click()
If Val(Text1.Text) & Val(Text2.Text) Then
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End If

If Val(Text4.Text) & Val(Text5.Text) Then
Text6.Text = Val(Text4.Text) / Val(Text5.Text)
End If

If Val(Text7.Text) & Val(Text8.Text) Then
Text9.Text = Val(Text7.Text) - Val(Text8.Text)
End If

If Val(Text10.Text) & Val(Text11.Text) Then
Text12.Text = Val(Text10.Text) * Val(Text11.Text)
End If

End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text1.SetFocus

End Sub

Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text1.SetFocus

End Sub

Private Sub Command4_Click()
End
End Sub




Komentar

Postingan populer dari blog ini

PEMILIHAN MULI MEKHANAI

cara membuat grafik 3D Plots Surf, Mesh, dan Contour menggunakan matlab

STMIK PRINGSEWU GELAR PRA PENDIDIKAN DASAR MILITER (PRADIKSARMIL)