VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Autotype Combo Box

Shon  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code was taken from O'Neil. It searches a combo box as the user types. O'Neil's code was modified to use the SendMessage API to search the combo box, which made it much faster. This is very fast, even with thousands of records in the combo box. Thank you O'Neil for the idea, and the well commented code!

API Declarations
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Integer, _
ByVal lParam As Any) As Long

Public Const CB_FINDSTRING = &H14C

Rate Autotype Combo Box (5(5 Vote))
Autotype Combo Box.bas

Autotype Combo Box Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters