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

Hi,

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
                  Else
                                                .SmallIcon = 1 'TICK
                  End If
                  ListControls.Visible = False
                  ListControls.Visible = True
            End With
      End Sub

I get error at '.SmallIcon '
anusdesaiAsked:
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).

Regards,

Wayne
0
 
anusdesaiAuthor Commented:
Works great!!!!!

Cheers mate
0
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.