Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am using Visual Studio 2005, and Microsoft .NET Compact Framework v2.0 service pack 2.

If I create a combo box on one of my forms (using the toolbox), and I set the DropDown Style Property to DropDownList it works fine. But I want the user to be able to type in the combo box, so I set the DropDown Style to DropDown, and it looks fine in designer view. But when I run my program, the combo box colour is not displayed properly. (Lets just say I have the BackColor Property set to Blue) The outside of the combo box is blue, but the textbox portion (a square in the middle of the combo box) is displayed white. Once again, this only happens when I set the DropDown Property to DropDown, and the program has to be running.

Here are the steps that I went through on a new project to reproduce the issue.
-Open Visual Studio 2005
-Create a new project (Choose Smart Device Project)
-Set the Target Platform to Windows Mobile 5.0 Pocket PC SDK
-On Form1 add a Combo Box control from the toolbox
-Go to properties and set the DropDownStyle to DropDown
-Change the BackColor Property to red
(If you want to compare the two types, add a second combo box to the form. Set the DropDownStyle of this one to DropDownList, and set the BackColor to red)
-Press F5 or click start debugging
**Note: This happens if I run it in the Device Emulator or the device itself**
When the program runs you should see that the first combo box has a white box in the center.

Do you have any ideas on how I could fix this. I want to be able to type in the combo boxes, as well as select from the list. Any ideas?

Thanks
Katlyn
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900