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

collection

P: n/a
how can i take items value or other value listbox or listview with for each

thanks
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
Hi wudan,
The most simple one
\\\
Dim lsv As ListViewItem
For Each lsv In ListView1.Items
MessageBox.Show(lsv.Index.ToString & " " & lsv.Text)
Next
///
I hope this helps a little bit.

Cor
Nov 20 '05 #2

P: n/a
thanks

i'm vs71.bof

wudan

"Cor" <no*@non.com> wrote in message
news:3f**********************@reader22.wxs.nl...
Hi wudan,
The most simple one
\\\
Dim lsv As ListViewItem
For Each lsv In ListView1.Items
MessageBox.Show(lsv.Index.ToString & " " & lsv.Text)
Next
///
I hope this helps a little bit.

Cor

Nov 20 '05 #3

P: n/a
Hi,
The following topic help topic shows how to use the Items
collection on a listbox.
ms-help://MS.VSCC/MS.MSDNQTR.2003APR.1033/cpref/html/frlrfsystemwindowsforms
listboxclassitemstopic.htm
Hope that helps.
Thanks,
Sarika
--------------------
From: "wudan" <a@a.com>
Subject: collection
Date: Thu, 9 Oct 2003 15:04:20 +0300
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <#n*************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: kdgate.bilgeadam.com 212.64.220.90
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145286
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

how can i take items value or other value listbox or listview with for each

thanks


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.