Adding Images to SubItems in a ListView (VB.NET)

Posted on 2004-11-28
Last Modified: 2012-06-21
I'm trying to figure out how to add an image to a subitem in a ListView using VB.NET code.  I've found some samples in C# but am having difficulty converting them to VB.NET.

Does anyone have some VB.NET sample code?
Question by:tfewster949
    LVL 18

    Expert Comment

    LVL 18

    Expert Comment

    You may alos try
    to convert C# example to Vb.NET
    Not very good, but does work
    LVL 10

    Expert Comment

    check this link:
    following is the code to set the image

        Set strItem = frmClient.lvwYou.ListItems.Add(, SName, SName & " " & UnConverted, , ReturnIcon)'// this is the normal icon
        strItem.ListSubItems.Add , , strNick, ProfIcon'// this is the subitem icon

    also check the link below:
    LVL 10

    Accepted Solution

    check this link tooo...

    this one is exactly th one u need.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    This video discusses moving either the default database or any database to a new volume.
    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…

    728 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

    24 Experts available now in Live!

    Get 1:1 Help Now