Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub ListBox1_SelectedIndexChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("Manchester")
ComboBox1.Items.Add("Liverpool")
ComboBox1.Items.Add("Newcastle")
ComboBox1.Items.Add("Leeds")
ComboBox1.Items.Add("Cardiff")
ComboBox1.Items.Add("London")
ComboBox2.Items.Add("Washington D.C")
ComboBox2.Items.Add("Alicante")
ComboBox2.Items.Add("Rome")
ComboBox2.Items.Add("Palma")
ComboBox2.Items.Add("Paris")
ComboBox2.Items.Add("Barcelona")
ComboBox3.Items.Add("1")
ComboBox3.Items.Add("2")
ComboBox3.Items.Add("3")
ComboBox3.Items.Add("4")
ComboBox3.Items.Add("5")
ComboBox4.Items.Add("0")
ComboBox4.Items.Add("1")
ComboBox4.Items.Add("2")
ComboBox4.Items.Add("3")
ComboBox4.Items.Add("4")
ComboBox4.Items.Add("5")
ComboBox5.Items.Add("0")
ComboBox5.Items.Add("1")
ComboBox5.Items.Add("2")
ComboBox5.Items.Add("3")
ComboBox5.Items.Add("4")
ComboBox5.Items.Add("5")
End Sub
Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
End Sub
Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox3.SelectedIndexChanged
End Sub
Private Sub ComboBox4_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox4.SelectedIndexChanged
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
ComboBox5.Text = ""
TextBox1.Text = ""
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
End Sub
Private Sub ListBox1_SelectedIndexChanged_2(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ComboBox2.Text = "Alicante" Then
TextBox1.Text = (ComboBox3.Text * 300) + (ComboBox4.Text * 150) + (ComboBox5.Text * 100)
End If
If ComboBox2.Text = "Rome" Then
TextBox1.Text = (ComboBox3.Text * 400) + (ComboBox4.Text * 200) + (ComboBox5.Text * 150)
End If
If ComboBox2.Text = "Palma" Then
TextBox1.Text = (ComboBox3.Text * 280) + (ComboBox4.Text * 190) + (ComboBox5.Text * 160)
End If
If ComboBox2.Text = "Paris" Then
TextBox1.Text = (ComboBox3.Text * 280) + (ComboBox4.Text * 190) + (ComboBox5.Text * 160)
End If
If ComboBox2.Text = "Washington D.C" Then
TextBox1.Text = (ComboBox3.Text * 480) + (ComboBox4.Text * 290) + (ComboBox5.Text * 190)
End If
If ComboBox2.Text = "Barcelona" Then
TextBox1.Text = (ComboBox3.Text * 380) + (ComboBox4.Text * 200) + (ComboBox5.Text * 190)
End If
End Sub
Private Sub TextBox1_TextChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
End Sub
End Class