VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Best Auto Complete

by Morpheous (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

Creates an Autocomplete drop down box

Assumes
1 text box

Rate Best Auto Complete

'This program needs a textbox ('Text1') on a form
Private Const SHACF_AUTOAPPEND_FORCE_OFF = &H80000000
Private Const SHACF_AUTOAPPEND_FORCE_ON = &H40000000
Private Const SHACF_AUTOSUGGEST_FORCE_OFF = &H20000000
Private Const SHACF_AUTOSUGGEST_FORCE_ON = &H10000000
Private Const SHACF_DEFAULT = &H0
Private Const SHACF_FILESYSTEM = &H1
Private Const SHACF_URLHISTORY = &H2
Private Const SHACF_URLMRU = &H4
Private Const SHACF_USETAB = &H8
Private Const SHACF_URLALL = (SHACF_URLHISTORY Or SHACF_URLMRU)
Private Declare Sub SHAutoComplete Lib "shlwapi.dll" (ByVal hwndEdit As Long, ByVal dwFlags As Long)
Private Sub Form_Load()
 SHAutoComplete Text1.hWnd, SHACF_DEFAULT
End Sub

Download this snippet    Add to My Saved Code

Best Auto Complete Comments

No comments have been posted about Best Auto Complete. Why not be the first to post a comment about Best Auto Complete.

Post your comment

Subject:
Message:
0/1000 characters