473,387 Members | 1,621 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,387 software developers and data experts.

ListBox.SelectedItems.Count is always 1

Even if I select several items, and I can see that several items are
colored in blue.

I can't get a list of all selected items.
I also have listBox.SelectionMode = SelectionMode.MultiExtended;

What can I do?

Jun 11 '06 #1
2 4446
Hi,
please supply a short example which demonstrates the problem you are
having. You should just be able to call the SelectedItems property in the
control to get all of th ecurrently selected items, so something else must be
wrong.

Thanks
Mark
--
http://www.markdawson.org
"oh******@netvision.net.il" wrote:
Even if I select several items, and I can see that several items are
colored in blue.

I can't get a list of all selected items.
I also have listBox.SelectionMode = SelectionMode.MultiExtended;

What can I do?

Jun 11 '06 #2
I've the same problem and after some tries and seek on Internet I'm
slowly convinced that there is a major bu in the ListBox implementation
Cheers
Pascal

oh******@netvision.net.il wrote:
Even if I select several items, and I can see that several items are
colored in blue.

I can't get a list of all selected items.
I also have listBox.SelectionMode = SelectionMode.MultiExtended;

What can I do?


Jun 28 '06 #3

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

Similar topics

3
by: Alex Stevens | last post by:
I'd already posted this in microsoft.public.dotnet.framework.windowsforms and microsoft.public.dotnet.framework.windowsforms.controls to no avail so apologies for the cross-posting. Hi, I'm...
2
by: tangokilo | last post by:
Hello and thanks for your help, I have the following Listbox created in VisualStudio 2003 designer, desiring to select multiple entries from that list: -------------------------------...
28
by: cjobes | last post by:
Hi all, I need to populate a listbox from a table column. The column has multiple entries of usernames and I need to pull a unique set of usernames. The table is part of an untyped Dataset that...
3
by: Richard Albrecht | last post by:
I have been trying to figure out for days on how to read values from a Bound ListBox. The listBox gets the values from an Access Table. I can read values fine for Non-Bound ListBoxes, But the...
3
by: thomasp | last post by:
Has anyone got some sample code to do drag and drop from one listbox to another listbox using VB.Net 2005. The below code works for draging and droping one at a time, but not for multiselected...
3
by: Michael Meckelein | last post by:
Hello, I run into trouble move down a selected item in a listbox. The code moving down the item is the following one: for (int j = lv.SelectedItems.Count-1; j >=0; j--) { ListViewItem...
2
by: =?Utf-8?B?TmFjaA==?= | last post by:
I am new to .net can someone teranslate the foloowing in .net Ls and Lt will be listboxes. Sub ListCpSelected(Ls As Control, Lt As Control) 'Copies selected items from one list to another Dim I...
1
by: =?Utf-8?B?R3VzIENodWNo?= | last post by:
I have a ListBox with the SelectionMode set to MultiSimple. How can I iterate thru it using a for next loop to fill an array? Listbox For Row 1 = Array(1) Row 2 = Array(2) Next And so on. --
1
by: Randy | last post by:
Hi, I have a listbox that allows multiple selections. I need to loop through each selection and execute code based on the text of the item. I'm sure that this is really simple, but I can't quite...
4
by: rmarma | last post by:
sample code from intro to vb using .net (dana l.wyatt) is as follows ******************************** Private Sub btnShowAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.