Senin, 29 Maret 2010
MEMBUAT LUAS BANGUN
Menghitung Luas Persegi panjang :
Panjang :
1.Input panjang : Textbox > Text (kosongkan isinya edit di caption) > name : txtpj
2.Input panjang : Textbox > Text (kosongkan isinya edit di caption) > name : txtpj
3.Command Button > name : cmdluas> caption Hitung Luas
4.Input luas : Textbox > Text (kosongkan isinya edit di caption) > name : txtluas
5.Double click command button :
Private Sub Command1_Click()
Text3.Text = Text2.Text * Text1.Text
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
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
Tool tip text
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar
thanks for comment