Private Sub CMDBERSIH_Click()
TXTN1.SetFocus
TXTN1 = ""
TXTN2 = ""
TXTN3 = ""
End Sub
Private Sub CMDHITUNG_Click()
TXTN3 = Val(TXTN1) * Val(TXTN2)
End Sub
Private Sub CMDKELUAR_Click()
Unload Me
End Sub
Private Sub TXTN1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTN2.SetFocus
End If
End Sub
No comments:
Post a Comment