By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

Auto Search in Combo

P: 64
Hi Folks,

I want Help regarding the Auto search in the Combo Box. When I am pressing the characters it will move to the appropraite words in the Combo Box.

For Example if the Combo Box filled with the Apple, Ant, Boy,Buy

If press the A then it should go the Apple,Ant,
If press the An then it should go the Ant.

Like this to be activate the Auto Search in the Combo.

Thanks & Regards
--------------------------
Mahesh
May 30 '08 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
Hi Folks,

I want Help regarding the Auto search in the Combo Box. When I am pressing the characters it will move to the appropraite words in the Combo Box.

For Example if the Combo Box filled with the Apple, Ant, Boy,Buy

If press the A then it should go the Apple,Ant,
If press the An then it should go the Ant.

Like this to be activate the Auto Search in the Combo.

Thanks & Regards
--------------------------
Mahesh

Well, i dont know exactly what you want, but, the easy way out would be checking the MatchEntry and MatchRequired properties.

But if you want to look Pro, you can always have an array with all the values, lets say Arr1 (of strings) wit Ant, Apple, Boy, Buy. then just use a TextBox where you'll write your filter, and youre done.

Expand|Select|Wrap|Line Numbers
  1. dim i as integer
  2. for i = lbound(arr1) to ubound(arr1)
  3.     if instr(arr1(i), textbox1.text) <> 0 then combobox2.additem (arr1(i))
  4. next
That'll do

HTH
Jun 2 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.