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

listview usage

I have an application that creates a list view.
I want the user to be able to select several items.
How do I retrieve then information for several selections.
I can do it for 1 but not several.
Also the list has check box once the user has selected an item I want the
check box checked. I do not want the user to be able to check the box.
thanks
Apr 12 '06 #1
1 957
Gonzosez,

The listview control keeps track of selected items in its SelectedItems
property.

You can use a For Each loop to get each selected item. For example:

For Each item As ListViewItem In lvwEmployees.SelectedItems
MsgBox(item.Text)
Next

Kerry Moorman
"Gonzosez" wrote:
I have an application that creates a list view.
I want the user to be able to select several items.
How do I retrieve then information for several selections.
I can do it for 1 but not several.
Also the list has check box once the user has selected an item I want the
check box checked. I do not want the user to be able to check the box.
thanks

Apr 12 '06 #2

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

Similar topics

2
by: David Miller | last post by:
Hello, I posted this to DotNet.Framework.Controls a week ago or so and got no response, so now I will repost it here to see if anyone here knows anything about it... I have an application...
1
by: Hakon | last post by:
Dear Sir, I have a program to gather real-time test data from test instrument and display with Listview, but the data elements may >300000. So, memory usage will unexpected large. I have tried to...
15
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
1
by: Hakon H via .NET 247 | last post by:
Dear Sir, My program add new row to Listview in VB6 run-time, but the memory usage get also higher and higher. I need to add appr. 300,000 rows into listview, so how could I do to reduce the...
10
by: Vinay | last post by:
Hi, Is there a limit on maximum number of columns in listview control ? I am finding: In a listview control (Report Format) I am displaying a record with 400 fields. I am creating its column...
6
by: Ken | last post by:
I have a listview with 24 rows and 150 columns. I update 3 rows every 10 seconds. 1 2 3 4 ... 150 row1 row2 row3 row4 .. ..
2
by: Joe | last post by:
Anyone can suggest the best method of reading XML and adding data to ListView? Here is the xml data structure:: <xml> <site> <url>http://www.yahoo.com</url> <lastupdate></lastupdate>...
1
by: Michael M. | last post by:
HI all, When I add items to a Listview control, then clearing the items and adding more items my program seems to allocate a few KB of data and then not free the Memory. I noticed this about...
2
by: Tony | last post by:
Hello! I read about this ListView. Does is exist any component that is a ListView that is redy to be used in ..NET ? Is those CommonDialog(OpenFileDialog, saveFileDialog and so on) that is...
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: 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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.