Solved

Combobox

Posted on 2004-08-16
4
207 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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