1. Tampilan Form
a. Listing
Private Sub Command1_Click()
Text3 = Val(Text1.Text) + Val(Text2.Text)
MsgBox "Hasil Penjumlahan adalah " & Text3, vbOKOnly, "Pesan"
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1.SetFocus
End If
End Sub
0 50 Kometar:
Posting Komentar