473,441 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

Set the control to select Multiple items in a ListBox

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

Jan 3 '06 #1
5 2346
Hi,
"chad" <bo******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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 Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Jan 3 '06 #2
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


*** Sent via Developersdex http://www.developersdex.com ***
Jan 3 '06 #3
Also i'm using this application with the moble framework.

Thanks

Jan 3 '06 #4
Hi,

"chad" <bo******@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 4 '06 #5
Hi,

"Chad Bodecker" <bo******@gmail.com> wrote in message
news:O1**************@TK2MSFTNGP11.phx.gbl...
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.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: headware | last post by:
I have a <select> control that contains many entries. It allows the user to multi-select a group of them, click a button, and store the selected data in a database. Normally they do this starting...
3
by: ted | last post by:
Hi, I can't figure out how to set multiple items in a ListBox to selected when the listbox is in a User Control. When the ListBox is set in directly into a form I can use the following:...
4
by: Ryan Ternier | last post by:
Hello, I have a repeater control that does the following on the ItemDataBound event. It works perfectly, except that when it prints out, the names of the controls aren't what I'd expect. ...
2
by: Peter | last post by:
Hello! Please, could anyone tell, is it possible to set multiple items to be selected in list control in the code? For example when the web form is loaded three items of 5 are selected in list...
0
by: deepak | last post by:
Hi all, i m transefering values from one listbox to another listbox using javascript(both are html controls), the first listbox is populating with database at page_load time and the second listbox...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
1
by: sab | last post by:
Hi, We have a web form with a listbox. The listbox is a multiple select listbox and has data that looks something like: ALL Unit 1 Unit 2 Unit 3 Note: "ALL" is always the first item in...
2
by: John Dann | last post by:
This question has arisen from an earlier thread but is really a separate issue: I have a VB.Net listbox control on a form. I want to be able to do 2 things with items displayed within the one...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.