Anda di halaman 1dari 2

Design Form

Ketentuan Program :

1. ketika program diRun lbltgl tampil otomatis ( lbltgl = Tanggal sekarang )


Sebelumnya Isi
Name Propertie
s
Option1 caption Paket I
Option2 caption Paket II
Option3 caption Paket III
List1 list Komputer Baru
Komputer Bekas
2. Ketika list1 di Pilih ( baru / bekas ) Maka : prosesor, hardisk, memory, CD/DVD dan Harga akan uncul

PAKET BARU / BEKAS


Paket I Komputer baru Prosesor Pentium 4
Hardisk 250 GB
Memory 526 MB
CD / DVD CD - RW
Harga 1500000
Komputer Bekas prosesor Pentium 4
Hardisk 250 GB
Memory 526 MB
CD / DVD CD - RW
Harga 100000
Paket II Komputer baru prosesor Core 2
Hardisk 250 GB
Memory 1 GB
CD / DVD CD - RW
Harga 2000000
Komputer Bekas prosesor Core 2
Hardisk 40 GB
Memory 526 MB
CD / DVD CD - RW
Harga 1500000

3. Input jumlah beli, Ketika Command1 (Hitung) di Tekan maka :


Total Bayar = jumlah beli * Harga
Code program

Sub komputer() Private Sub List1_Click()


If option1.Value = True Then komputer
If List1.Text = " Komputer Baru" Then End Sub
text2.Text = " Pentium 4 "
text3.Text = " 250 GB "
text4.Text = " 526 MB " Private Sub Command1_Click()
text5.Text = " CD - RW " text7.Text = Val(text1.Text) * Val(text6.Text)
text6.Text = 1500000 End Sub
ElseIf List1.Text = " Komputer Bekas" Then
text2.Text = " Pentium 4 " Private Sub Timer1_Timer()
text3.Text = " 40 GB " lbltgl.Caption = Date
text4.Text = " 526 MB " End Sub
text5.Text = " CD - R "
text6.Text = 1000000
End If
ElseIf option2.Value = True Then
If List1.Text = " Komputer Baru" Then
text2.Text = " core 2 "
text3.Text = " 250 GB "
text4.Text = " 1 GB MB "
text5.Text = " CD - RW "
text6.Text = 2000000
ElseIf List1.Text = " Komputer Bekas" Then
text2.Text = " core 2 "
text3.Text = " 40 GB "
text4.Text = " 526 MB "
text5.Text = " CD - RW "
text6.Text = 1500000
End If
End If
End Sub