You are on page 1of 1

Private Sub cmbmakan_Click()

If cmbmakan.Text = "bakso" Then


txthrg1.Text = 5000
Else
If cmbmakan.Text = "mie ayam" Then
txthrg1.Text = 75000
Else
If cmbmakan.Text = "ayam geprek" Then
txthrg1.Text = 10000
End If
End If
End If

End Sub

Private Sub Form_Activate()


cmbmakan.AddItem ("bakso")
cmbmakan.AddItem ("mie ayam")
cmbmakan.AddItem ("ayam geprek")
End Sub

You might also like