Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Will Not Drop Down

Status
Not open for further replies.

sjf905

Programmer
Sep 20, 2006
13
US
Hello, I have a combo box on a form. When I run the application, I click the drop down arrow and it does drop but only for a split second, then rolls back up. If I click on the text of the box, I can key down to select anything in it. I have tried:

comboBox1.Enabled = true;
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox1.Show();
comboBox1.BringToFront();
comboBox1.Focus();

Both of these return false:
comboBox1.CanSelect
comboBox1.CanFocus

I've been programming for a while but am new to C#.
Thanks for any help.
 
Do you have code in any of the events raised by the combobox?

That would be the first thing I would check. you might be unintentionally sending the focus to another control, forcing the drop down to roll back up, among other possibilities.
 
No code that I made. I created it through the design interface and added the items likewise. Where could I check to see if I am unintentionally causing the error?

BTW, I have tested other combo boxes in other forms (totally seperate of this project) and get the same result.
 
Try another machine, sounds more like an OS or even a mouse gone wacky.
 
Figured it out!!! Finally. I have a skin on the application that I got from some website. Remove the skin, combo works fine. That took weeks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top