Yeah this is because the combobox doesn't respond to mousedoubleclick events. But you can simulate this behavior through the mouseclick event and testing if another click has happened in the time span of the first click quick enough to be considered a double click. It goes like this...
CODE
' Record the last click with the current time
Dim lastClick As Date = Now
Private Sub ComboBox1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ComboBox1.MouseClick
' Test if in the last time plus the milliseconds it takes for a double click
' there was another click, activate the code (there was a double click)
If Now < lastClick.AddMilliseconds(SystemInformation.DoubleClickTime) Then
' Create our second form and show it modal
Dim form As New Form2
form.ShowDialog()
End If
' Record the last click as now again
lastClick = Now
End Sub
We show the second form modally, so in that form we have a textbox and a button which adds whatever is in the textbox to the combobox on form1 and hides itself using a button.
The rest is history. Enjoy the code!
"At DIC we be double click simulating code ninjas!"
This post has been edited by Martyr2: 11 Dec, 2007 - 09:22 PM