What is equivalent to 'small icon'  in for listview

Posted on 2007-07-30
Last Modified: 2013-11-26

What is equivalent to small icon in for listview

Private Sub ListControls_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles ListControls.Click
            'don't try this in ItemClick procedure; tick/untick don't work
            On Error Resume Next
            With ListControls.FocusedItem
                  If Not .Selected Then Exit Sub
                  SaveRunSettings = True
                                    If .SmallIcon = 1 Then
                                                .SmallIcon = 0 'UNTICK
                                                .SmallIcon = 1 'TICK
                  End If
                  ListControls.Visible = False
                  ListControls.Visible = True
            End With
      End Sub

I get error at '.SmallIcon '
Question by:anusdesai
    LVL 46

    Accepted Solution

    Hello anusdesai,

    The only you can use to change the icon is the ImageIndex. You can use different ImageLists depending on the size (either SmallImageList or LargeImageList).



    Author Comment

    Works great!!!!!

    Cheers mate

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now