Multiple-select ListBox in CF

  • Thread starter Thread starter Batvanio
  • Start date Start date
B

Batvanio

Hi,

I needed a multi-select ListBox in CF and apparently this is not
exposed through managed code. I thoght that the CE - version of the
control does not support it , but I careted an MFC applicaton for CE,
and it works - you can create a multi - select ListBox there.
Then, I tried to see if I can use P/Invoke to change style or use any
of the existing messages to change the created ListBox style (using
the Handle property of the .net control) but it looks to me like the
multi - select style can not be changed at runtime, only during
creation. Is there any way that I can still use the .NET control but
somehow modify the style to enable multi-select?

I know people suggested earlier using a different control (i.e.
ListView / CheckBoxes, or third-party) but ListBox is simple enough, I
don't need anything fancy, plus, it looks strange that such a basic
style is not exposed in CF...

Thanks,
Ivan
 
Back
Top