Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Req: Correct procedure for ComboBox DoubleClick

$
0
0
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?

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

This thread has been updated for the future reference of jmcilhinney, thank you.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>