AutoComplete ComboBox using Visual Basic 6.0

Submitted by: 
Visitors have accessed this post 19750 times.

Somebody emailed me on how to create an AutoComplete ComboBox using VB 6.0. I have actually created this kind of code but using VB.NET entitled “Autocomplete ComboBox in DataGridView Control”.

I have taken the code off the net and modified it to suit my needs. Most of the example on the internet does not include database so I decided to add a database so it would be easy for you to understand on how to retrieve the record directly database table.

The code here will simply auto complete the name in a ComboBox as you type.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


thanks for the time sir!

thank you for the thought, im just going to convert it to sql as its database

How can i apply this in VFP9.0? do i need to create new project for this.

thank you so much it help me mu=ch

Thank you sir! you are great

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3>
  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.