Selasa, 01 April 2014

Lesson 3 : Tambah, Ubah, Hapus Pada Form Supplier

Membuat Form Form Tambah, Ubah dan Hapus Supplier

1.  Pada View Designer tambahkan toolbox seperti gambar di atas:
Atur properties :
No
Properties
Keterangan
1
Form
Name : AddSupplier
2
Label1
Text : Kode Supplier
3
Label2
Text : Nama Supplier
4
Label3
Text : Alamat Supllier
5
Label4
Text : No Hp
6
TextBox1
Name : txtKode
7
TextBox2
Name : txtNama
8
TextBox3
Name : txtAlamat
Multineline : True
ScrollBars : Both
9
TextBox4
Name : txtNoHp
10
Button1
Name : btnSimpan
Text : &Simpan
11
Button2
Name : btnUbah
Text : &Ubah
12
Button3
Name : btnHapus
Text : &Hapus
2. Klik View Code, ikuti script seperti gambar dibawah:
a. Code fungsi bersih text

b. Code pada btnSimpan
c. Code pada btnUbah
d. Code pada btnHapus



Tidak ada komentar:

Posting Komentar