By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,928 Members | 1,810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,928 IT Pros & Developers. It's quick & easy.

ListView in VB.Net finding the selected item

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.