ComboBoxStyle.DropDown not available in the compact framework?

G

Guest

Hi,

I'm creating a PDA application for Pocket PC 2003 using VS.NET 2003 and C#.

I'm trying to create an editable drop down list, where you can enter both
your own text or choose an item in the list.

I've been reading around on the net and found there are several different
combo box styles, the two main ones being: DropDownList, which is
non-editable and DropDown which is editable.

However, when i went to change the combox DropDownStyle within the form load
method, ComboBoxStyle only pops up with a single member which is DropDownList
and DropDown doesn't appear to be in the list. Even specifying it explicitly
returns a build error:

(496): 'System.Windows.Forms.ComboBoxStyle' does not contain a definition
for 'DropDown'

I've seen editable drop down lists in many PDA applications, however, is
this achieved with some kind of workaround?
 
D

Daniel Moth

With CF v1.0, you would have to emulate this yourself e.g. using a combobox
and a textbox (showing and hiding the appropriate one based on user actions
and handling the events behind the scenes).

With CF v2.0 the property is supported.

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top