ComboBox1.Items.Add("One Love Hip Hop") ComboBox1.Items.Add("Just Hip Hop") ComboBox1.Items.Add("Electric FM") ComboBox1.Items.Add("Eurodance 90") ComboBox1.Items.Add("Gaia Radio") ComboBox1.Items.Add("202 Chill Out") ComboBox1.Items.Add("2000 FM Hard Rock")
Dim station As String If ComboBox1.SelectedIndex = 0 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=2776c94c-7a4a-4fd9-afc7-bbe945f53124&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 1 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=153ea8a1-cb18-4106-8637-ed50521aae61&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 2 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=1fd96794-dd9d-4602-a495-fa7fed164e0b&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 3 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=cc5f3d9e-c75f-4065-b592-cddc1bc20bb4&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 4 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=d4bcd49f-06f1-4c18-9c68-aa11731a0c11&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 5 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=16f3c064-316c-4d37-b969-c004e53165df&dialupDetected=true&useHighBandwidth=false&locale=it-it" ElseIf ComboBox1.SelectedIndex = 6 Then station = "http://www.windowsmedia.com/RadioTunerAPI/Service.asmx/playStation?stationID=955aa0cd-872c-400c-8b4f-bffe19432e42&dialupDetected=true&useHighBandwidth=false&locale=it-it" End If AxWindowsMediaPlayer1.URL = station