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 '
Who is Participating?
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.