Monday, August 8, 2011

VB2008 List box help?!!?!?

I won't do the code for you but I'll point you in the right direction. You'll want to create a keydown event handler for your textbox. Each time that event fires you'll want to take whatever has been keyed into the textbox and try to match it to something in your listbox. You can use the .Contains or the .SubString method. .Contains will match anywhere in the string, .Substring will match only where you tell it to look in the string, which is probably better in this case.

No comments:

Post a Comment