• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1218
  • Last Modified:

What is equivalent to 'small icon' in vb.net for listview


What is equivalent to small icon in vb.net 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 '
1 Solution
Wayne Taylor (webtubbs)Commented:
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).


anusdesaiAuthor Commented:
Works great!!!!!

Cheers mate

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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