index
>
Windows Forms General
> listview
listview
Hi All,
I just want to ask how i can get the selected item in a listview control in vb2005...
Attila Fogel Saturday, November 05, 2005 11:43 PM
Use the ListView.SelectedItems property:
If
ListView1.SelectedItems.Count > 0
Then
Dim
selectedItem
as
ListViewItem = ListView1.SelectedItems.Item(0)
End
If
David M. Kean Sunday, November 06, 2005 12:18 AM
Use the ListView.SelectedItems property:
If
ListView1.SelectedItems.Count > 0
Then
Dim
selectedItem
as
ListViewItem = ListView1.SelectedItems.Item(0)
End
If
David M. Kean Sunday, November 06, 2005 12:18 AM
Hi,
Especially i want to use this to get the current item with all subitems to export 'em into a second form. Does this contains all of the subitems, too?
thnx
Attila Fogel Sunday, November 06, 2005 12:23 AM
ok, sorry... I gotcha now... :) Thnx for your great help... :)
Attila Fogel Sunday, November 06, 2005 12:30 AM
You can use google to search for other answers
Custom Search
More Threads
AutoScroll paint problem
WebBrowser w/o cookies
.txt as a datasource for datagridview
Does any event fire when a drag and drop is ended?
Multiple WebBrowsers
How to programmatically click a button from a C# console application?
Form(s) trouble...
How to change foreground of checkeditem of CheckedListbox...
Form with only MaximizeBox
Custom SaveFileDialog
Home
Copyright 2009-2010 by windowsdevelop.com All rights reserved