Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box control with embedded search behavior 1

Status
Not open for further replies.

DevonTaig

Programmer
May 2, 2001
73
US
I am looking for a combo-box control that behaves just like the Internet Explorer Combobox where you type in your URL. You should be able to type in a string such as " and it finds and populates matches in the lower window (such as " and " The lower window would shrink or grow, just like Internet Explorer does based upon the value the user typed in.
 
Type ahead ability is what you are describing and there are a few examples on this site and more around the web. That gets you the = part. Then there is this thread222-438535 that contains code by strongm that will get you started on the display part and with only 8 replies in the 30 threads that you have started I would like to point you to FAQ222-2244 item 15. In fact the whole FAQ222-2244 will help you get the most from this site.

Good Luck
 
You can also use the SHAutoComplete function to give a text box control the auto-complete feature, which displays a drop-down list of available options when you type in the text box.

It can complete URLs as well as file-system paths, just like Internet Explorer.
___
[tt]
Private Declare Function SHAutoComplete Lib "shlwapi" (ByVal hwndEdit As Long, ByVal dwFlags As Long) As Long

Private Sub Form_Load()
SHAutoComplete Text1.hWnd, 0
End Sub[/tt]
___

For further details, see the SHAutoComplete function.
 

kieren, did these replies help any? Did you read FAQ222-2244 item 15?

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top