Membuat Program Rental VCD DVD Menggunakan VB

download

of 3

  • date post

    23-Aug-2014
  • Category

    Documents
  • view

    609
  • download

    3

description

skrip code

transcript

Ritoyan Blog : Membuat Program Rental VCD DVD menggunakan VB Membuat Program Rental VCD DVD menggunakan VB Buka Visual Basic Anda, lalu desain form seperti dibawa ini.

Setelah selesai mendesain form seperti gambar diatas, secara ketikan listing program dibawah ini sesuai pada tempatnya.

Private Sub Check1_Click() If Check1.Value = 0 Then Text4.Text = Clear Else Text4.Text = 250000 End If End Sub Private Sub Check2_Click() If Check2.Value = 0 Then Text4.Text = Clear Else Text4.Text = 200000 End If End Sub Private Sub Check3_Click() If Check3.Value = 0 Then Text4.Text = Clear Else Text4.Text = 200000

Ritoyan Blog : Membuat Program Rental VCD DVD menggunakan VB End If End Sub Private Sub Check4_Click() If Check4.Value = 0 Then Text4.Text = Clear Else Text4.Text = 400000 End If End Sub Private Sub Command1_Click() JML1 = Val(Text4.Text) JML2 = Val(Text4.Text) JML3 = Val(Text4.Text) JML4 = Val(Text4.Text) JML = Val(Text4.Text) - Val(Text5.Text) Text6.Text = JML Text4.Text = Format(Text4.Text, "Rp #,###,###") & "-" Text5.Text = Format(Text5.Text, "Rp #,###,###") & "-" Text6.Text = Format(Text6.Text, "Rp #,###,###") & "-" End Sub Private Sub Command2_Click() Check1.Value = 0 Check2.Value = 0 Check3.Value = 0 Check4.Value = 0 Option1.Value = Clear Option2.Value = Clear Text1.Text = Clear Text2.Text = Clear Text3.Text = Clear Text4.Text = Clear Text5.Text = Clear Text6.Text = Clear Combo1 = Clear End Sub Private Sub Command3_Click() End End Sub Private Sub Form_Load() Combo1.AddItem "LAKI-LAKI" Combo1.AddItem "PEREMPUAN"

Ritoyan Blog : Membuat Program Rental VCD DVD menggunakan VB End Sub Private Sub Option1_Click() If Option1 = True Then Text5.Text = Val(Text4.Text) * 0.1 End If End Sub Private Sub Option2_Click() If Option2 = True Then Text5.Text = Val(Text4.Text) * 0 End If End Sub Private Sub Text4_Change() If Check1.Value = 1 Then JML1 = 250000 If Check2.Value = 1 Then JML2 = 200000 If Check3.Value = 1 Then JML3 = 200000 If Check4.Value = 1 Then JML4 = 400000 Text4.Text = JML1 + JML2 + JML3 + JML4 End Sub Kalau ngk mau repot2, kamu bisa download contonya program