HighTechTalks DotNet Forums  

Listview Items

VB.net microsoft.public.dotnet.languages.vb


Discuss Listview Items in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bill English
 
Posts: n/a

Default Listview Items - 04-16-2004 , 02:58 PM






How do I get the string of the selected item in a
listview when a user double clicks the item? Note: I
don't know the index number of the item, they are
automatically generated.

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Listview Items - 04-16-2004 , 03:55 PM






* "Bill English" <nutsy4 (AT) comcast (DOT) net> scripsit:
Quote:
How do I get the string of the selected item in a
listview when a user double clicks the item? Note: I
don't know the index number of the item, they are
automatically generated.
\\\
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
MsgBox(Me.ListView1.SelectedItems(0).Text())
End Sub
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Reply With Quote
  #3  
Old   
Bill English
 
Posts: n/a

Default Re: Listview Items - 04-16-2004 , 06:02 PM



Thanks!



Quote:
-----Original Message-----
* "Bill English" <nutsy4 (AT) comcast (DOT) net> scripsit:
How do I get the string of the selected item in a
listview when a user double clicks the item? Note: I
don't know the index number of the item, they are
automatically generated.

\\\
Private Sub ListView1_DoubleClick(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
ListView1.DoubleClick
Quote:
MsgBox(Me.ListView1.SelectedItems(0).Text())
End Sub
///

--
Herfried K. Wagner [MVP]
URL:http://dotnet.mvps.org/
.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.