Page 1 of 1

How to get index of multi-selected images in thumbnail

Posted: Thu Mar 15, 2012 4:35 am
by lamchau12
Hi all,

I use thumbnail control to display many images and i set MultiSelect = true so that i could select many images at the same time.
My problem is i could not get index of multi-selected images.
Ex : in thumbnail, i have 10 images. I select 3 images at the same time. The question is : how could i get index of 3 images ? ( i'm using GDPicture ver.Trial )

Every helps are welcome!

Re: How to get index of multi-selected images in thumbnail

Posted: Thu Mar 15, 2012 11:32 am
by Loïc
Hello,

It's easy as is :)

Code: Select all

        For i As Integer = 0 To ThumbnailEx1.ItemCount - 1
            If ThumbnailEx1.GetItemSelectState(i) Then
                MsgBox("Item: " & i.ToString + " is selected")
            End If
        Next
Let me know if the problem persists.

Kind regards,

Loïc