AutoComplete ComboBox using Visual Basic 6.0

Submitted by: 
Language: 
Visitors have accessed this post 19993 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 SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

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.

Comments

thanks for the time sir!

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

Sir can you give me an example how to import sql database to mysql using vb6.0 as my language heres my add [email protected]

Sir.
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> <iframe>
  • 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.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.