How to get index of multi-selected images in thumbnail

Discussions about the ThumbnailEx control of GdPicture.NET.
Post Reply
lamchau12
Posts: 1
Joined: Thu Mar 15, 2012 4:25 am

How to get index of multi-selected images in thumbnail

Post by lamchau12 » Thu Mar 15, 2012 4:35 am

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!

User avatar
Loïc
Site Admin
Posts: 5545
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

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

Post by Loïc » Thu Mar 15, 2012 11:32 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest