You are on page 1of 35

Private Sub ComboBox1_Change()

If ComboBox1.Text = "KIA" Then


ComboBox2.Clear
ComboBox2.AddItem "NOVO CONCEPT"
ComboBox2.AddItem "RIO"
ComboBox2.AddItem "SPORTAGE"
ComboBox2.AddItem "CERATO"
ComboBox2.AddItem "PICANTO TUNING"

End If

If ComboBox1.Text = "AUDI" Then


ComboBox2.Clear
ComboBox2.AddItem "S8"
ComboBox2.AddItem "R8 SPYDER"
ComboBox2.AddItem "WALLPAPER RS5"
ComboBox2.AddItem "CAMIONETA Q5"
ComboBox2.AddItem "Q3"
End If

If ComboBox1.Text = "FORD" Then


ComboBox2.Clear
ComboBox2.AddItem "KUGA"
ComboBox2.AddItem "MUSTANG CLASICO"
ComboBox2.AddItem "MUSTANG "
ComboBox2.AddItem "RAPTOR"
ComboBox2.AddItem "FIESTA"

End If
If ComboBox1.Text = "NISSAN" Then
ComboBox2.Clear

ComboBox2.AddItem "MARCH"
ComboBox2.AddItem "SKYLINE"
ComboBox2.AddItem "JUKE"
ComboBox2.AddItem "350Z"
ComboBox2.AddItem "CAMIONETA"

End If
If ComboBox1.Text = "BMW" Then
ComboBox2.Clear
ComboBox2.AddItem "I8"
ComboBox2.AddItem "X6"
ComboBox2.AddItem "I8 SPYDER"
ComboBox2.AddItem "CAMIONETA"
ComboBox2.AddItem "SERIE 1"

End If
If ComboBox1.Text = "MERCEDES" Then
ComboBox2.Clear
ComboBox2.AddItem "BENZ CLASE C"
ComboBox2.AddItem "SL 65 AMG"
ComboBox2.AddItem "BENZ AMG GT"
ComboBox2.AddItem "BENZ SLS AMG"
ComboBox2.AddItem "BENZ SLS AMG GT3"

End If

End Sub

Private Sub ComboBox2_Change()

If ComboBox2.Text = "NOVO CONCEPT" Then


Image1.Picture = LoadPicture("F:\P\KIA NOVO CONCEPT.jpg")
End If

If ComboBox2.Text = "RIO" Then


Image1.Picture = LoadPicture("F:\KIA RIO.jpg")
End If
If ComboBox2.Text = "SPORTAGE" Then
Image1.Picture = LoadPicture("F:\P\SPORTAGE.jpg")
End If
If ComboBox2.Text = "CERATO" Then
Image1.Picture = LoadPicture("F:\P\CERATO.jpg")
End If
If ComboBox2.Text = "PICANTO TUNING" Then
Image1.Picture = LoadPicture("F:\P\PICANTO.jpg")
End If
If ComboBox2.Text = "S8" Then
Image1.Picture = LoadPicture("F:\P\S8.jpg")
End If
If ComboBox2.Text = "R8" Then
Image1.Picture = LoadPicture("F:\P\R8.jpg")
End If
If ComboBox2.Text = "WALLPAPER RS5" Then
Image1.Picture = LoadPicture("F:\P\WALLPAPER.jpg")
End If
If ComboBox2.Text = "CAMIONETA Q5" Then
Image1.Picture = LoadPicture("F:\P\Q5.jpg")
End If
If ComboBox2.Text = "Q3" Then
Image1.Picture = LoadPicture("F:\P\Q3.jpg")
End If
If ComboBox2.Text = "KUGA" Then

Image1.Picture = LoadPicture("F:\P\KUGA.jpg")
End If
If ComboBox2.Text = "MUSTANG CLASICO" Then
Image1.Picture = LoadPicture("F:\P\MUSTANG.jpg")
End If
If ComboBox2.Text = "MUSTANG" Then
Image1.Picture = LoadPicture("F:\P\FORD.jpg")
End If
If ComboBox2.Text = "RAPTOR" Then
Image1.Picture = LoadPicture("F:\P\RAPTOR.jpg")
End If
If ComboBox2.Text = "FIESTA" Then
Image1.Picture = LoadPicture("F:\P\FIESTA.jpg")
End If
If ComboBox2.Text = "MARCH" Then
Image1.Picture = LoadPicture("F:\P\MARCH.jpg")
End If
If ComboBox2.Text = "SKYLINE" Then
Image1.Picture = LoadPicture("F:\P\SKYLINE.jpg")
End If
If ComboBox2.Text = "JUKE" Then
Image1.Picture = LoadPicture("F:\P\JUKE.jpg")
End If
If ComboBox2.Text = "350Z" Then
Image1.Picture = LoadPicture("F:\P\350Z.jpg")
End If
If ComboBox2.Text = "CAMIONETA" Then
Image1.Picture = LoadPicture("F:\P\CAMIONETA.jpg")
End If
If ComboBox2.Text = "SERIE 1" Then
Image1.Picture = LoadPicture("F:\P\SERIE 1.jpg")
End If

If ComboBox2.Text = "I8" Then


Image1.Picture = LoadPicture("F:\P\I8.jpg")
End If
If ComboBox2.Text = "X6" Then
Image1.Picture = LoadPicture("F:\P\X6.jpg")
End If
If ComboBox2.Text = "I8 SPYDER" Then
Image1.Picture = LoadPicture("F:\P\SPYDER.jpg")
End If
If ComboBox2.Text = "CAMIONETA" Then
Image1.Picture = LoadPicture("F:\P\BMW CAMIONETA.jpg")
End If
If ComboBox2.Text = "BENZ CLASE C" Then
Image1.Picture = LoadPicture("F:\P\CLASE C.jpg")
End If
If ComboBox2.Text = "SL 65 AMG" Then
Image1.Picture = LoadPicture("F:\P\65.jpg")
End If
If ComboBox2.Text = "BENZ AMG GT" Then
Image1.Picture = LoadPicture("F:\P\GT.jpg")
End If
If ComboBox2.Text = "BENZ SLS AMG" Then
Image1.Picture = LoadPicture("F:\P\SLS.jpg")
End If
If ComboBox2.Text = "BENZ SLS AMG GT3" Then
Image1.Picture = LoadPicture("F:\P\GT3.jpg")
End If

End Sub

Private Sub ComboBox2_Click()


If ComboBox2.Text = "NOVO CONCEPT" Then
TextBox1.Text = "KIA NOVO CONCEPT"
TextBox2.Text = "kia"
TextBox3.Text = "novo concept"
TextBox4.Text = "45000000"
End If
If ComboBox2.Text = "RIO" Then
TextBox1.Text = "KIA RIO"
TextBox2.Text = "kia"
TextBox3.Text = "RIO"
TextBox4.Text = "65000000"

End If
If ComboBox2.Text = "SPORTAGE" Then
TextBox1.Text = "KIA SPORTAGE"
TextBox2.Text = "kia"
TextBox3.Text = "SPORTAGE"
TextBox4.Text = "150000000"
End If
If ComboBox2.Text = "CERATO" Then
TextBox1.Text = "KIA CERATO"
TextBox2.Text = "kia"
TextBox3.Text = "CERATO"
TextBox4.Text = "55000000"
End If
If ComboBox2.Text = "PICANTO TUNING" Then
TextBox1.Text = "KIA PICANTO TUNING"
TextBox2.Text = "kia"
TextBox3.Text = "PICANTO TUNING"
TextBox4.Text = "100000000"

End If
If ComboBox2.Text = "S8" Then
TextBox1.Text = "AUDI S8"
TextBox2.Text = "AUDI"
TextBox3.Text = "S8"
TextBox4.Text = "75000000"
End If
If ComboBox2.Text = "R8 SPYDER" Then
TextBox1.Text = "AUDI R8 SPYDER"
TextBox2.Text = "AUDI"
TextBox3.Text = "R8 SYDER"
TextBox4.Text = "95000000"
End If
If ComboBox2.Text = "WALLPAPER RS5" Then
TextBox1.Text = "AUDI WALLPAPER RS5"
TextBox2.Text = "AUDI"
TextBox3.Text = "WALLPAPER RS5"
TextBox4.Text = "70000000"
End If
If ComboBox2.Text = "CAMIONETA Q5" Then
TextBox1.Text = "AUDI CAMIONETA Q5"
TextBox2.Text = "AUDI"
TextBox3.Text = "CAMIONETA Q5"
TextBox4.Text = "120000000"
End If
If ComboBox2.Text = "Q3" Then
TextBox1.Text = "AUDI Q3"
TextBox2.Text = "AUDI"
TextBox3.Text = "Q3"
TextBox4.Text = "89000000"
End If
If ComboBox2.Text = "KUGA" Then

TextBox1.Text = "FORD KUGA"


TextBox2.Text = "FORD"
TextBox3.Text = "KUGA"
TextBox4.Text = "89000000"
End If
If ComboBox2.Text = "MUSTANG CLASICO" Then
TextBox1.Text = "FORD MUSTANG CLASICO"
TextBox2.Text = "FORD"
TextBox3.Text = "MUSTANG CLASICO"
TextBox4.Text = "99000000"
End If
If ComboBox2.Text = "MUSTANG" Then
TextBox1.Text = "FORD MUSTANG"
TextBox2.Text = "FORD"
TextBox3.Text = "MUSTANG CLASICO"
TextBox4.Text = "69000000"
End If
If ComboBox2.Text = "RAPTOR" Then
TextBox1.Text = "FORD RAPTOR"
TextBox2.Text = "FORD"
TextBox3.Text = "RAPTOR"
TextBox4.Text = "79000000"
End If
If ComboBox2.Text = "FIESTA" Then
TextBox1.Text = "FORD FIESTA"
TextBox2.Text = "FORD"
TextBox3.Text = "FIESTA"
TextBox4.Text = "199000000"
End If
If ComboBox2.Text = "MARCH" Then
TextBox1.Text = "NISSAN MARCH"
TextBox2.Text = "NISSAN"

TextBox3.Text = "MARCH"
TextBox4.Text = "179000000"
End If
If ComboBox2.Text = "SKYLINE" Then
TextBox1.Text = "NISSAN SKYLINE"
TextBox2.Text = "NISSAN"
TextBox3.Text = "SKYLINE"
TextBox4.Text = "100000000"
End If
If ComboBox2.Text = "JUKE" Then
TextBox1.Text = "NISSAN JUKE"
TextBox2.Text = "NISSAN"
TextBox3.Text = "JUKE"
TextBox4.Text = "108000000"
End If
If ComboBox2.Text = "350Z" Then
TextBox1.Text = "NISSAN 350Z"
TextBox2.Text = "NISSAN"
TextBox3.Text = "350Z"
TextBox4.Text = "120000000"
End If
If ComboBox2.Text = "CAMIONETA" Then
TextBox1.Text = "NISSAN CAMIONETA"
TextBox2.Text = "NISSAN"
TextBox3.Text = "CAMIONETA"
TextBox4.Text = "180000000"
End If
If ComboBox2.Text = "SERIE 1" Then
TextBox1.Text = "BMW SERIE 1"
TextBox2.Text = "BMW"
TextBox3.Text = "SERIE 1"
TextBox4.Text = "108900000"

End If
If ComboBox2.Text = "I8" Then
TextBox1.Text = "BMW I8"
TextBox2.Text = "BMW"
TextBox3.Text = "I8"
TextBox4.Text = "200000000"
End If
If ComboBox2.Text = "X6" Then
TextBox1.Text = "BMW X6"
TextBox2.Text = "BMW"
TextBox3.Text = "X6"
TextBox4.Text = "89000000"
End If
If ComboBox2.Text = "I8 SPYDER" Then
TextBox1.Text = "BMW I8 SPYDER"
TextBox2.Text = "BMW"
TextBox3.Text = "I8 SPYDER"
TextBox4.Text = "28900000"
End If
If ComboBox2.Text = "CAMIONETA" Then
TextBox1.Text = "BMW CAMIONETA"
TextBox2.Text = "BMW"
TextBox3.Text = "CAMIONETA"
TextBox4.Text = "88900000"
End If
If ComboBox2.Text = "SL 65 AMG" Then
TextBox1.Text = "MERCEDES SL 65 AMG"
TextBox2.Text = "MERCEDES"
TextBox3.Text = "SL 65 AMG"
TextBox4.Text = "93900000"
End If
If ComboBox2.Text = "BENZ AMG GT" Then

TextBox1.Text = "MERCEDES BENZ AMG GT"


TextBox2.Text = "MERCEDES"
TextBox3.Text = "BENZ AMG GT"
TextBox4.Text = "108800000"
End If
If ComboBox2.Text = "BENZ SLS AMG" Then
TextBox1.Text = "MERCEDES BENZ SLS AMG"
TextBox2.Text = "MERCEDES"
TextBox3.Text = "BENZ SLS AMG"
TextBox4.Text = "234500000"
End If
If ComboBox2.Text = "BENZ SLS AMG GT3" Then
TextBox1.Text = "MERCEDES BENZ SLS AMG GT3"
TextBox2.Text = "MERCDES"
TextBox3.Text = "BENZ SLS AMG GT3"
TextBox4.Text = "99900000"
End If
If ComboBox2.Text = "BENZ CLASE C" Then
TextBox1.Text = "MERCEDES BENZ CLASE C"
TextBox2.Text = "MERCDES"
TextBox3.Text = "BENZ CLASE C"
TextBox4.Text = "78900000"
End If

End Sub

Private Sub CommandButton1_Click()


TextBox1.Enabled = True
TextBox2.Enabled = True
TextBox3.Enabled = True
TextBox4.Enabled = True
TextBox5.Enabled = True
TextBox6.Enabled = True
TextBox7.Enabled = True
TextBox8.Enabled = True
TextBox9.Enabled = True

TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""

TextBox1.SetFocus
TextBox2.SetFocus
TextBox3.SetFocus
TextBox4.SetFocus
TextBox5.SetFocus
TextBox6.SetFocus
TextBox7.SetFocus
TextBox8.SetFocus
TextBox9.SetFocus

End Sub

Private Sub CommandButton2_Click()


UserForm2.Show

End Sub

Private Sub TextBox5_Change()


TextBox6.Text = Val(TextBox4.Text) * Val(TextBox5.Text)
TextBox7.Text = Val(TextBox6.Text) * 0.16
TextBox8.Text = Val(TextBox7.Text) * 0.1
TextBox9.Text = Val(TextBox8.Text) + Val(TextBox7.Text) - Val(TextBox8.Text)

End Sub

Private Sub UserForm_Activate()


ComboBox1.AddItem "KIA"
ComboBox1.AddItem "AUDI"
ComboBox1.AddItem "FORD"
ComboBox1.AddItem "NISSAN"
ComboBox1.AddItem "BMW"
ComboBox1.AddItem "MERCEDES"

End Sub

Private Sub UserForm_Click()


ComboBox1.AddItem "KIA"

End Sub

MOTOS

Private Sub CheckBox1_Click()


If Label11.Caption = "3" Then
TextBox9.Text = Val(TextBox5.Text) * 0.25
End If

End Sub

Private Sub CommandButton1_Click()


OptionButton1.Value = False
OptionButton2.Value = False
OptionButton3.Value = False
OptionButton4.Value = False
OptionButton5.Value = False
OptionButton6.Value = False
OptionButton7.Value = False
OptionButton8.Value = False
OptionButton9.Value = False
OptionButton10.Value = False
CheckBox1.Value = False
Image1.Picture = LoadPicture("")
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""

TextBox9.Text = ""
Label11.Caption = ""

End Sub

Private Sub CommandButton3_Click()


Label11.Caption = Int(5 * Rnd + 1)

End Sub

Private Sub Label11_Click()

End Sub

Private Sub OptionButton1_Click()


If OptionButton1.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2012.JPG")
TextBox1.Text = "KAWASAKI 2012"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2012"
TextBox4.Text = "11000000"
End If

If OptionButton1.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2013.JPG")
TextBox1.Text = "KAWASAKI 2013"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2013"
TextBox4.Text = "12000000"
End If

If OptionButton1.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2014.JPG")
TextBox1.Text = "KAWASAKI 2014"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2014"
TextBox4.Text = "13000000"
End If

If OptionButton1.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2015.JPG")
TextBox1.Text = "KAWASAKI 2015"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2015"
TextBox4.Text = "14000000"
End If

If OptionButton1.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2016.JPG")
TextBox1.Text = "KAWASAKI 2016"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2016"
TextBox4.Text = "15000000"
End If

End Sub

Private Sub OptionButton10_Click()


If OptionButton1.Value = True And OptionButton10.Value = True Then

Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2016.JPG")
TextBox1.Text = "KAWASAKI 2016"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2016"
TextBox4.Text = "15000000"
End If

If OptionButton2.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2016.JPG")
TextBox1.Text = "SUZUKI 2016"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2016"
TextBox4.Text = "18000000"
End If

If OptionButton3.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2016.JPG")
TextBox1.Text = "YAMAHA 2016"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2016"
TextBox4.Text = "8000000"
End If

If OptionButton4.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2016.JPG")
TextBox1.Text = "HONDA2016"
TextBox2.Text = "HONDA"
TextBox3.Text = "2016"
TextBox4.Text = "20000000"
End If

If OptionButton4.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2016.JPG")
TextBox1.Text = "KTM2016"
TextBox2.Text = "KTM"
TextBox3.Text = "2016"
TextBox4.Text = "18000000"
End If
End Sub

Private Sub OptionButton2_Click()


If OptionButton2.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2012.JPG")
TextBox1.Text = "SUZUKI 2012"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2012"
TextBox4.Text = "15000000"
End If

If OptionButton2.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2013.JPG")
TextBox1.Text = "SUZUKI 2013"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2013"
TextBox4.Text = "16000000"
End If

If OptionButton2.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2014.JPG")
TextBox1.Text = "SUZUKI 2014"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2014"
TextBox4.Text = "17000000"

End If

If OptionButton2.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2015.JPG")
TextBox1.Text = "SUZUKI 2015"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2015"
TextBox4.Text = "17000000"
End If

If OptionButton2.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2016.JPG")
TextBox1.Text = "SUZUKI 2016"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2016"
TextBox4.Text = "18000000"
End If

End Sub

Private Sub OptionButton3_Click()


If OptionButton3.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2012.JPG")
TextBox1.Text = "YAMAHA2012"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2012"
TextBox4.Text = "7000000"
End If

If OptionButton3.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2013.JPG")

TextBox1.Text = "YAMAHA 2013"


TextBox2.Text = "YAMAHA"
TextBox3.Text = "2013"
TextBox4.Text = "8000000"
End If

If OptionButton3.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2014.JPG")
TextBox1.Text = "YAMAHA 2014"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2014"
TextBox4.Text = "9000000"
End If

If OptionButton3.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2015.JPG")
TextBox1.Text = "YAMAHA 2015"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2015"
TextBox4.Text = "10000000"
End If

If OptionButton3.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2016.JPG")
TextBox1.Text = "YAMAHA 2016"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2016"
TextBox4.Text = "8000000"
End If

End Sub

Private Sub OptionButton4_Click()


If OptionButton4.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\HONDA2012.JPG")
TextBox1.Text = "HONDA2012"
TextBox2.Text = "HONDA"
TextBox3.Text = "2012"
TextBox4.Text = "16000000"
End If

If OptionButton4.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2013.JPG")
TextBox1.Text = "HONDA2013"
TextBox2.Text = "HONDA"
TextBox3.Text = "2013"
TextBox4.Text = "17000000"
End If

If OptionButton4.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2014.JPG")
TextBox1.Text = "HONDA2014"
TextBox2.Text = "HONDA"
TextBox3.Text = "2014"
TextBox4.Text = "18000000"
End If

If OptionButton4.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2015.JPG")
TextBox1.Text = "HONDA2015"
TextBox2.Text = "HONDA"
TextBox3.Text = "2015"
TextBox4.Text = "19000000"
End If

If OptionButton4.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2016.JPG")
TextBox1.Text = "HONDA2016"
TextBox2.Text = "HONDA"
TextBox3.Text = "2016"
TextBox4.Text = "20000000"
End If
End Sub

Private Sub OptionButton5_Click()


If OptionButton4.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\KTM2012.JPG")
TextBox1.Text = "KTM2012"
TextBox2.Text = "KTM"
TextBox3.Text = "2012"
TextBox4.Text = "14000000"
End If

If OptionButton4.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2013.JPG")
TextBox1.Text = "KTM2013"
TextBox2.Text = "KTM"
TextBox3.Text = "2013"
TextBox4.Text = "15000000"
End If

If OptionButton4.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2014.JPG")
TextBox1.Text = "KTM2014"
TextBox2.Text = "KTM"
TextBox3.Text = "2014"

TextBox4.Text = "16000000"
End If

If OptionButton4.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2015.JPG")
TextBox1.Text = "KTM2015"
TextBox2.Text = "KTM"
TextBox3.Text = "2015"
TextBox4.Text = "17000000"
End If

If OptionButton4.Value = True And OptionButton10.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2016.JPG")
TextBox1.Text = "KTM2016"
TextBox2.Text = "KTM"
TextBox3.Text = "2016"
TextBox4.Text = "18000000"
End If
End Sub

Private Sub OptionButton6_Click()


If OptionButton1.Value = True And OptionButton6.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2012.JPG")
TextBox1.Text = "KAWASAKI 2012"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2012"
TextBox4.Text = "11000000"
End If

If OptionButton2.Value = True And OptionButton6.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2012.JPG")
TextBox1.Text = "SUZUKI 2012"

TextBox2.Text = "SUZUKI"
TextBox3.Text = "2012"
TextBox4.Text = "15000000"
End If

If OptionButton3.Value = True And OptionButton6.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2012.JPG")
TextBox1.Text = "YAMAHA2012"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2012"
TextBox4.Text = "7000000"
End If

If OptionButton4.Value = True And OptionButton6.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2012.JPG")
TextBox1.Text = "HONDA2012"
TextBox2.Text = "HONDA"
TextBox3.Text = "2012"
TextBox4.Text = "16000000"
End If

If OptionButton4.Value = True And OptionButton6.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KTM2012.JPG")
TextBox1.Text = "KTM2012"
TextBox2.Text = "KTM"
TextBox3.Text = "2012"
TextBox4.Text = "14000000"
End If
End Sub

Private Sub OptionButton7_Click()


If OptionButton1.Value = True And OptionButton7.Value = True Then

Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2013.JPG")
TextBox1.Text = "KAWASAKI 2013"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2013"
TextBox4.Text = "12000000"
End If

If OptionButton2.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2013.JPG")
TextBox1.Text = "SUZUKI 2013"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2013"
TextBox4.Text = "16000000"
End If

If OptionButton3.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2013.JPG")
TextBox1.Text = "YAMAHA 2013"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2013"
TextBox4.Text = "8000000"
End If

If OptionButton4.Value = True And OptionButton7.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2013.JPG")
TextBox1.Text = "HONDA2013"
TextBox2.Text = "HONDA"
TextBox3.Text = "2013"
TextBox4.Text = "17000000"
End If

If OptionButton4.Value = True And OptionButton7.Value = True Then

Image1.Picture = LoadPicture("F:\imagenes\HONDA2013.JPG")
TextBox1.Text = "KTM2013"
TextBox2.Text = "KTM"
TextBox3.Text = "2013"
TextBox4.Text = "15000000"
End If
End Sub

Private Sub OptionButton8_Click()


If OptionButton1.Value = True And OptionButton8.Value = True Then
Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2014.JPG")
TextBox1.Text = "KAWASAKI 2014"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2014"
TextBox4.Text = "13000000"
End If

If OptionButton2.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2014.JPG")
TextBox1.Text = "SUZUKI 2014"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2014"
TextBox4.Text = "17000000"
End If

If OptionButton3.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2014.JPG")
TextBox1.Text = "YAMAHA 2014"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2014"
TextBox4.Text = "9000000"

End If

If OptionButton4.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2014.JPG")
TextBox1.Text = "HONDA2014"
TextBox2.Text = "HONDA"
TextBox3.Text = "2014"
TextBox4.Text = "18000000"
End If

If OptionButton4.Value = True And OptionButton8.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2014.JPG")
TextBox1.Text = "KTM2014"
TextBox2.Text = "KTM"
TextBox3.Text = "2014"
TextBox4.Text = "16000000"
End If

End Sub

Private Sub OptionButton9_Click()

If OptionButton1.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\KAWASAKI2015.JPG")
TextBox1.Text = "KAWASAKI 2015"
TextBox2.Text = "KAWASAKI"
TextBox3.Text = "2015"
TextBox4.Text = "14000000"
End If

If OptionButton2.Value = True And OptionButton9.Value = True Then

Image1.Picture = LoadPicture("F:\imagenes\SUZUKI2015.JPG")
TextBox1.Text = "SUZUKI 2015"
TextBox2.Text = "SUZUKI"
TextBox3.Text = "2015"
TextBox4.Text = "17000000"
End If

If OptionButton3.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\YAMAHA2015.JPG")
TextBox1.Text = "YAMAHA 2015"
TextBox2.Text = "YAMAHA"
TextBox3.Text = "2015"
TextBox4.Text = "10000000"
End If

If OptionButton4.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2015.JPG")
TextBox1.Text = "HONDA2015"
TextBox2.Text = "HONDA"
TextBox3.Text = "2015"
TextBox4.Text = "19000000"
End If

If OptionButton4.Value = True And OptionButton9.Value = True Then


Image1.Picture = LoadPicture("F:\imagenes\HONDA2015.JPG")
TextBox1.Text = "KTM2015"
TextBox2.Text = "KTM"
TextBox3.Text = "2015"
TextBox4.Text = "17000000"
End If
End Sub

Private Sub TextBox5_Change()


TextBox6.Text = Val(TextBox4.Text) * Val(TextBox5.Text)
TextBox7.Text = Val(TextBox6.Text) * 0.16
TextBox8.Text = Val(TextBox7.Text) * 0.1
TextBox9.Text = Val(TextBox8.Text) + Val(TextBox7.Text) - Val(TextBox8.Text)
End Sub

ELECTRODOMESTICOS
Private Sub CheckBox1_Click()
If ListBox1.Text = "LAVADORA" Then
TextBox3.Text = "1500000"
CheckBox2.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "NEVERA" Then


TextBox3.Text = "2000000"
CheckBox2.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "COMPUTADOR" Then


TextBox3.Text = "2000000"
CheckBox2.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "MICROONDAS" Then


TextBox3.Text = "12000000"
CheckBox2.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "TELEVISOR" Then


TextBox3.Text = "2000000"
CheckBox2.Value = False
CheckBox3.Value = False
End If
End Sub

Private Sub CheckBox2_Click()


If ListBox1.Text = "LAVADORA" Then
TextBox3.Text = "1000000"
CheckBox1.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "NEVERA" Then


TextBox3.Text = "1200000"
CheckBox1.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "COMPUTADOR" Then


TextBox3.Text = "1500000"
CheckBox1.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "MICROONDAS" Then


TextBox3.Text = "1000000"
CheckBox1.Value = False
CheckBox3.Value = False
End If

If ListBox1.Text = "TELEVISOR" Then


TextBox3.Text = "1700000"
CheckBox1.Value = False
CheckBox3.Value = False
End If
End Sub

Private Sub CheckBox3_Click()


If ListBox1.Text = "LAVADORA" Then
TextBox3.Text = "900000"
CheckBox1.Value = False
CheckBox2.Value = False
End If

If ListBox1.Text = "NEVERA" Then


TextBox3.Text = "850000"
CheckBox1.Value = False
CheckBox2.Value = False
End If

If ListBox1.Text = "COMPUTADOR" Then


TextBox3.Text = "800000"
CheckBox1.Value = False
CheckBox2.Value = False
End If

If ListBox1.Text = "MICROONDAS" Then


TextBox3.Text = "500000"
CheckBox1.Value = False
CheckBox2.Value = False
End If

If ListBox1.Text = "TELEVISOR" Then


TextBox3.Text = "700000"
CheckBox1.Value = False
CheckBox2.Value = False
End If
End Sub

Private Sub CommandButton1_Click()


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
Image1.Picture = LoadPicture("")
CheckBox1.Value = False
CheckBox2.Value = False
CheckBox3.Value = False
ListBox1.Clear

End Sub

Private Sub CommandButton2_Click()


Dim SALIR As Byte
SALIR = MsgBox("DESEA SALIR DE LA APLICACION?", 32 + 4, "SALIR")
If SALIR = 6 Then
End
End If

End Sub

Private Sub ListBox1_Click()


If ListBox1.Text = "LAVADORA" Then
TextBox1.Text = "LAVADORA"
TextBox2.Text = "WHIRLPOOL"
TextBox3.Text = "1000000"
Image1.Picture = LoadPicture("F:\imagenes\LAVADORA.JPG")
Label13.BackColor = QBColor(0)
Label14.BackColor = QBColor(8)
Label15.BackColor = QBColor(15)
End If

If ListBox1.Text = "NEVERA" Then


TextBox1.Text = "NEVERA"
TextBox2.Text = "HACEB"
TextBox3.Text = "1200000"
Image1.Picture = LoadPicture("F:\imagenes\NEVERA.JPG")
Label13.BackColor = QBColor(0)
Label14.BackColor = QBColor(8)
Label15.BackColor = QBColor(15)
End If

If ListBox1.Text = "COMPUTADOR" Then


TextBox1.Text = "COMPUTADOR"
TextBox2.Text = "LG"
TextBox3.Text = "1500000"
Image1.Picture = LoadPicture("F:\imagenes\COMPUTADOR.JPG")

Label13.BackColor = QBColor(2)
Label14.BackColor = QBColor(4)
Label15.BackColor = QBColor(15)
End If

If ListBox1.Text = "MICROONDAS" Then


TextBox1.Text = "MICROONDAS"
TextBox2.Text = "WHIRLPOOL"
TextBox3.Text = "1000000"
Image1.Picture = LoadPicture("F:\imagenes\MICROONDAS.JPG")
Label13.BackColor = QBColor(0)
Label14.BackColor = QBColor(8)
Label15.BackColor = QBColor(15)
End If

If ListBox1.Text = "TELEVISOR" Then


TextBox1.Text = "TELEVISOR"
TextBox2.Text = "CURVO"
TextBox3.Text = "1700000"
Image1.Picture = LoadPicture("F:\imagenes\TELEVISOR.JPG")
Label13.BackColor = QBColor(1)
Label14.BackColor = QBColor(0)
Label15.BackColor = QBColor(8)

End If

End Sub

Private Sub TextBox4_Change()


TextBox5.Text = Val(TextBox3.Text) * Val(TextBox4.Text)

TextBox6.Text = Val(TextBox5.Text) * 0.16


TextBox7.Text = Val(TextBox6.Text) * 0.1
TextBox8.Text = Val(TextBox7.Text) + Val(TextBox6.Text) - Val(TextBox7.Text)
End Sub

Private Sub UserForm_Activate()


ListBox1.AddItem "LAVADORA"
ListBox1.AddItem "NEVERA"
ListBox1.AddItem "COMPUTADOR"
ListBox1.AddItem "MICROONDAS"
ListBox1.AddItem "TELEVISOR"

End Sub

You might also like