Hi everyone,
I am looking sample code to swap 2 images.
For example, When I select an image & press HOME key, the application will this image with 1st image in thumbnail viewer.
Thank you in advance for your thought & help on this.
David
SWAP 2 Images
Moderator: Alex
Re: SWAP 2 Images
Hi,
Just want to clarify 1 thing: In a Thumbnail Viewer, I like to SWAP 2 images in Thumbnail Viewer.
Thanks.
Just want to clarify 1 thing: In a Thumbnail Viewer, I like to SWAP 2 images in Thumbnail Viewer.
Thanks.
Re: SWAP 2 Images
Hello David,
You need to use the Swap method of the ImageCollection class:
Best regards, Alexander
You need to use the Swap method of the ImageCollection class:
Code: Select all
ThumbnailViewer1.Images.Swap(0, 1)
Re: SWAP 2 Images
Hi Alex,
It works. Thank you very much.
It works. Thank you very much.