Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Combobox

Posted on 2004-08-16
4
Medium Priority
?
211 Views
Last Modified: 2010-08-05
How do I make the combo box drop down when I type in it?
0
Comment
Question by:fly412s
  • 2
4 Comments
 
LVL 1

Expert Comment

by:chmohan
ID: 11815298
on kepress cant u change the combo box style? or just select the first row and it will drop down
0
 

Author Comment

by:fly412s
ID: 11815455
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
 
LVL 9

Accepted Solution

by:
s_sansanwal earned 200 total points
ID: 11815637
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
 

Author Comment

by:fly412s
ID: 11816350
S Sansanwal-

Thank-you.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question