Results 1 to 19 of 19

Thread: Req: Correct procedure for ComboBox DoubleClick

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Req: Correct procedure for ComboBox DoubleClick

    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.
    Last edited by jokerfool; May 11th, 2013 at 09:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width