Private Sub CboAlas_Change()
LblAlas.Caption = CboAlas
End Sub
Private Sub CboTinggi_Change()
LblTinggi.Caption = CboTinggi
End Sub
Private Sub CmdHapus_Click()
CboAlas = ""
CboTinggi = ""
TxtHasil = ""
LblAlas.Caption = "Isi Alas"
LblTinggi.Caption = "IsiTinggi"
CboAlas.SetFocus
End Sub
Private Sub CmdHitung_Click()
If CboAlas = "" Or CboTinggi = "" Then
MsgBox ("Isi nilai Alas dan Tinggi")
Else
Alas = CboAlas
Tinggi = CboTinggi
Hasil = (Alas * Tinggi) / 2
TxtHasil = Hasil
End If
Tidak ada komentar:
Posting Komentar