By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,696 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,696 IT Pros & Developers. It's quick & easy.

disable f4 key for combo box

P: n/a
When your selected on a combo box, and hit F4, it shows
the drop down list.

So how do i stop the F4 key from bringing up the drop down
list on a combo box?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

"Dante" <da******@hotmail.com> schrieb:
When your selected on a combo box, and hit F4, it shows
the drop down list.

So how do i stop the F4 key from bringing up the drop down
list on a combo box?


\\\
Private Declare Auto Function SendMessage Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Boolean, _
Optional ByVal lParam As Int32 = 0 _
) As Int32

Private Const CB_SETEXTENDEDUI As Int32 = &H155
..
..
..

' Disable F4.
SendMessage(Me.ComboBox1.Handle, CB_SETEXTENDEDUI, True)
///

For enabling F4, pass 'False' in the last parameter.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.