468,514 Members | 1,631 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

ListView in VB.Net finding the selected item

I am a novice programer in Vb and I am having a major
brain ache finding out which item has been selected within
a list view and then either deleting that item or editing
them. My searching so far seems to indicate the use of
the "contains" command but I cannot find a helpfull
reference.

Any help greatly apreciated as I am workin on the second
bottle of nurophen

Phil Watkins
Jul 19 '05 #1
1 6188
Hi - Take a look at the selectedItems property on the ListView control
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpref/html/frlrfsystemwindows
formslistviewclassselecteditemstopic.htm

Thanks
A.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
| Content-Class: urn:content-classes:message
| From: "Phil Watkins" <ph***************@ntlworld.com>
| Sender: "Phil Watkins" <ph***************@ntlworld.com>
| Subject: ListView in VB.Net finding the selected item
| Date: Mon, 21 Jul 2003 14:48:09 -0700
| Lines: 11
| Message-ID: <04****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNP0cZjZ0+JK+NfRmywYH5bWTSCiQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:101964
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am a novice programer in Vb and I am having a major
| brain ache finding out which item has been selected within
| a list view and then either deleting that item or editing
| them. My searching so far seems to indicate the use of
| the "contains" command but I cannot find a helpfull
| reference.
|
| Any help greatly apreciated as I am workin on the second
| bottle of nurophen
|
| Phil Watkins
|

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Maheshkumar.R | last post: by
9 posts views Thread by Devron Blatchford | last post: by
1 post views Thread by Shane | last post: by
2 posts views Thread by Phil Watkins | last post: by
6 posts views Thread by Brandon McCombs | last post: by
12 posts views Thread by Tom Bean | last post: by
5 posts views Thread by Joza | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.