Combobox

How do I make the combo box drop down when I type in it?
fly412sAsked:
Who is Participating?
 
s_sansanwalConnect With a Mentor Commented:
In KeyDown Event, set DroppedDown property to true


            private void comboBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
            {
                  this.comboBox1.DroppedDown = true;
            }

Cheers,
S Sansanwal
0
 
chmohanCommented:
on kepress cant u change the combo box style? or just select the first row and it will drop down
0
 
fly412sAuthor Commented:
I could change the combo box style.  But I can't find which style to change it to.  I've selected all 3 styles in the dropdownstyle property box but none of them do what I want.  Also, I do not want to select the first row because the whole point is to allow the matching value to be shown in the combo box when it is typed into the combo box (sort of like the index textbox in visual studio's help page).
0
 
fly412sAuthor Commented:
S Sansanwal-

Thank-you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.