AutoComplete In VB.Net, Please...
Sunday, August 18, 2002
Dear Geniuses
I was trying to accept auto complete feature to a Visual Basic.Net textbox. I used the SHAutoComplete Api function as the following code snippet. The function returned S_OK but nothing happened. Please let me know what I’ve done wrong.
Private Const SHACF_URLHISTORY As Integer = &H2
Private Const SHACF_AUTOSUGGEST_FORCE_ON As Integer = &H10000000
Private Declare Auto Function ShAutoComplete Lib "shlwapi" Alias "SHAutoComplete" (ByVal hwnd As Integer, ByVal dwFlags As Integer) As Integer
Private Sub Whatever()
Me.ShAutoComplete(Me.myTextBox.Handle.ToInt32, SHACF_URLHISTORY Or SHACF_AUTOSUGGEST_FORCE_ON)
End Sub
Thanks for your time.