VB and combo boxes

Theslowone

Golden Member
Jul 30, 2000
1,779
0
0
I just started with vb and I can't figure out something.

I have a combo box with the 12 months in it, in order, but with the field left blank at for if the person was to choose to they could type in what month they needed.

I have the box set up the way I want but i don't know how to code it where it takes everything say january, Jan, jan, JAN, Janu, etc. I guess to make it where it would see all of it as basically the same thing.

Thanks for any help.

EDIT: I got it
 

BuckleDownBen

Banned
Jun 11, 2001
519
0
0
Set the Style property of the Combobox to 2. The the behavior will be that the the first time J is pressed it will go to January. Press J again then it will go to June, etc. If you want a Combobox where you type J, then U to get to June, there is no easy way to do it. However, if you search on the web you can find sample code that does it.

HTH