31.10.2015 Views

modul_v_basic_60

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

## Visual Programming (Visual Basic) ##<br />

MODUL 2<br />

INPUT DAN OUTPUT<br />

LATIHAN 1<br />

1. Buatlah sebuah aplikasi baru (File | New Project | Standard EXE)<br />

2. Masukan 3 TextBox, 3 Label dan 2 CommandButton<br />

3. Gantilah properties masing-masing komponen seperti tertera dibawah ini :<br />

Object Properties Value<br />

Form1 Caption Belanja<br />

TextBox1<br />

Text<br />

Name<br />

<br />

txtHargaSatuan<br />

TextBox2<br />

Text<br />

Name<br />

<br />

txtJumlah<br />

TextBox3<br />

Text<br />

Name<br />

<br />

txtBayar<br />

Label1 Caption Harga Satuan<br />

Label2 Caption Jumlah Barang<br />

Label3 Caption Bayar<br />

Command1 Caption Proses<br />

Command2 Caption Keluar<br />

4. Sesuai dengan Layout berikut :<br />

5. Masukan code untuk CommandButton Proses<br />

txtBayar.Text = Val(txtHargaSatuan.Text) * Val(txtJumlah.Text)<br />

Created by Aristoteles, 2007 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!