[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1622
  • Last Modified:

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

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?
0
tfewster949
Asked:
tfewster949
  • 2
  • 2
1 Solution
 
armoghanCommented:
tfewster949,
You may alos try
http://www.developerfusion.com/utilities/convertcsharptovb.aspx
to convert C# example to Vb.NET
Not very good, but does work
0
 
anvCommented:
check this link:

http://www.dotnetforums.net/showthread.php?t=71959
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:

http://www.dotnet247.com/247reference/msgs/33/165585.aspx
0
 
anvCommented:
check this link tooo...

this one is exactly th one u need.

http://www.dotnet-news.com/lien.aspx?ID=5814
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now