Where is ListViewItem Key  Property ?

Posted on 2005-05-09
Last Modified: 2008-01-09
Hi Experts

   How can we implement Key propery in ListViewItem  in ?
Question by:Shiju Sasidharan
    LVL 25

    Accepted Solution

    Add a hashtable or collection to your form like

    Dim myItems As New Hashtable

            For x As Integer = 0 To 10
                Dim y As New ListViewItem(x.ToString)
                myItems.Add(x, y)

    then you can cast them back to the listviewitem


    directcast(myitems(1),listviewitem).text = "whatever"
    LVL 96

    Expert Comment

    by:Bob Learned
    I predict that Ronald will be the first VB.NET millionaire :)

    LVL 25

    Expert Comment

    Good morning Bob :-),
    LVL 96

    Expert Comment

    by:Bob Learned
    Good afternoon, Ronald :)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now