From a previous project and having a dropdown list from using the code below to open the selected url, how do I change this by adding the dblclick command?
This thread has been updated for the future reference of jmcilhinney, thank you.Code:Dim items As New Dictionary(Of String, String) Private Sub Form20_Load(sender As Object, e As EventArgs) Handles MyBase.Load items.Add("Google", "http://www.google.com") items.Add("Yahoo)", "http://www.yahoo.com") ComboBox2.Items.AddRange(items.Keys.ToArray) End Sub Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged Process.Start(items(ComboBox2.Text)) End Sub End Class




Reply With Quote