Solved

Combobox

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now