VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

AutoCompleter Class Module

dmbbob  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code allows you to have an autocomplete function on any text boxes by creating an instance of the class module below and setting a text control on a form to is CompleteTextbox property. Ideal for those situations when you have multiple autocompletes. (Visual Basic 6 Only - Can easily be modified for 5.0 users)

Inputs
Dim m_objAutoCompleteUser as clsAutoComplete Set m_objAutoCompleteUser = New clsAutoComplete With m_objAutoCompleteUser .SearchList = m_strUserList Set .CompleteTextbox = txtUser .Delimeter = "," End With

Assumes
Create a new class module. Paste all the code below into it. Rename the module to clsAutoComplete.

Rate AutoCompleter Class Module (4(4 Vote))
AutoCompleter Class Module.bas

AutoCompleter Class Module Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters