Tugas 2

Gambar

KODE PROGRAM :

Private Sub Txt1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txt2.SetFocus
End If
End Sub

Private Sub Txt2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txt3.SetFocus
End If
End Sub

Private Sub Txt3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txt4.SetFocus
Txt4.Text = Val(Txt1.Text) * Val(Txt2.Text) / Val(Txt3.Text)
End If
End Sub

Private Sub CmdHitung_Click()
Txt4.Text = Val(Txt1.Text) * Val(Txt2.Text) / Val(Txt3.Text)
End Sub

Private Sub CmdBersih_Click()
Txt1.SetFocus
Txt1 = “”
Txt2 = “”
Txt3 = “”
Txt4 = “”
End Sub

Private Sub CmdKeluar_Click()
End
End Sub

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s