Solved

Combobox

Posted on 2004-08-16
4
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

636 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