PROGRAM 1

Source Code Command1
Private Sub
Command1_Click()
Text3.Text =
Val(Text1.Text) * Val(Text2.Text)
End Sub
Source Code Command2
Private Sub
Command2_Click()
Text1.SetFocus
Text1.Text =
""
Text2.Text =
""
Text3.Text =
""
End Sub
Source Code Command3
Private Sub
Command3_Click()
End
End Sub
Source Code Untuk Text1
Private Sub
Text1_KeyPress(KeyAscii As Integer)
If KeyAscii
= 13 Then
Text2.SetFocus
End If
End Sub
Source Code Untuk Text2
Private Sub
Text2_KeyPress(KeyAscii As Integer)
If KeyAscii
= 13 Then
Text3.Text =
Val(Text1.Text) * Val(Text2.Text)
End If
End Sub

Tidak ada komentar:
Posting Komentar