, , . , , , , , UNLIKE a
, , , , , Button + Textbox.
.
1)
DropButtonStyle = fmDropButtonStyleEllipsis
, , , design-time:
ShowDropButtonWhen = ShowDropButtonWhenFocus
2) , . .
3) . . . ( : , ComboBox1.DropDown)
Private Sub ComboBox1_DropButtonClick()
' The following two lines avoid to call the routine twice, at entry and at exit
Static i As Integer
i = (i + 1) Mod 2: If i = 0 Then Exit Sub
With ComboBox1
s = InputBox("enter some text", , .Value) '<~~ simulates any dialog
If s <> "" Then .Value = s
SendKeys ("{Enter}") '<~~ to close immediately the dropdown window
End With
End Sub
;)