Set the control to select Multiple items in a ListBox

  • Thread starter Thread starter chad
  • Start date Start date
C

chad

Hi,

Im new to C#, and I have a question. I can't figure out how to set the
listbox control top select multiple items in a ListBox.

I have tried using the following code, but C# VS 2005 PE does not have
SelectionMode :

listbox.SelectionMode = SelectionMode.MultiExtended;

Please Help!

Chad
 
Hi,


chad said:
Hi,

Im new to C#, and I have a question. I can't figure out how to set the
listbox control top select multiple items in a ListBox.

I have tried using the following code, but C# VS 2005 PE does not have
SelectionMode :

It's not the IDE the one who has or not a property, it's the class ListBox
in the 2.0 framework.

and as far as I can tell it does indeed !

is this a web or a win project?

better check the capitalization of it in the code/
 
Ignacio thanks for your reply!

The only reason I ref. VS 2005, is becuase its new and might not have
the same listBox class. Also I have tried every capitalization. But
the fact of the mater is that the listBox control Im using, selectmode
is not an option.

Is ther another control that has the selectmode option? If so how do I
get that one.

Its funny all other languages I have used the listbox have a muli-select
function.

Do you know of other options?

Chad
 
Hi,

chad said:
Also i'm using this application with the moble framework.

Ha, it does change EVERYTHING
The Listbox control does not support SelectionMode in the CF , go to
www.opennetcf.org and download the framework, IIRC theirs listboxEx does.
 
Hi,

Chad Bodecker said:
Ignacio thanks for your reply!

The only reason I ref. VS 2005, is becuase its new and might not have
the same listBox class.

Note that it's the framework and not the IDE the one that "has" the class.
Also I have tried every capitalization. But
the fact of the mater is that the listBox control Im using, selectmode
is not an option.

BEcause in the CF it does not exist.

Its funny all other languages I have used the listbox have a muli-select
function.

Again, it's the framework not the particular language ( C#, VB.NET , C++ ,
etc ) the one that implements the class.

What other languages had you use for PPC development?
It's a complete different platform than of the desktop.
 
Back
Top