Home All Groups Group Topic Archive Search About
Author
4 Apr 2005 1:49 PM
Starbuck
Hi

Is the a way of making a combobox pull down and display contents by pressing
Insert key while focus is on the control

Thanks for any thoughts.

Author
4 Apr 2005 4:58 PM
Larry Lard
Starbuck wrote:
> Hi
>
> Is the a way of making a combobox pull down and display contents by
pressing
> Insert key while focus is on the control
>
> Thanks for any thoughts.

    Private Sub MyComboBox_KeyDown(ByVal sender As Object, ByVal e As _
System.Windows.Forms.KeyEventArgs) Handles MyComboBox.KeyDown
        If e.KeyCode = Keys.Insert Then
            MyComboBox.DroppedDown = True
        End If
    End Sub

--
Larry Lard
Replies to group please
Author
4 Apr 2005 7:48 PM
Starbuck
Thanks Larry

Show quoteHide quote
"Larry Lard" <larryl***@hotmail.com> wrote in message
news:1112633885.220750.249700@g14g2000cwa.googlegroups.com...
>
> Starbuck wrote:
>> Hi
>>
>> Is the a way of making a combobox pull down and display contents by
> pressing
>> Insert key while focus is on the control
>>
>> Thanks for any thoughts.
>
>    Private Sub MyComboBox_KeyDown(ByVal sender As Object, ByVal e As _
> System.Windows.Forms.KeyEventArgs) Handles MyComboBox.KeyDown
>        If e.KeyCode = Keys.Insert Then
>            MyComboBox.DroppedDown = True
>        End If
>    End Sub
>
> --
> Larry Lard
> Replies to group please
>