This event is generated just after a thumbnail image is displayed in the Thumbnail Control.

[Visual Basic] Public Event ShowThumbnailImage As ThumbnailEventHandler
[C#] public event ThumbnailEventHandler ShowThumbnailImage;

Event Data

The event handler retrieves arguments of type ThumbnailEventArgs

Explanation

The ShowThumbImage event is generated just after a thumbnail image is displayed in the thumbnail control.

Information about files loaded during this event can be referred to within the ThumbnailLoadEventArgs arguments.

Regarding property for the ThumbnailEventArgs class

When multi-page image files are loaded, the page number is appended to the FileName parameter (If the page number is 0 then it is omitted).

Example: When page 2 of the file ABC.TIF is loaded into the thumbnail control, the FileName parameter will return the string "ABC.TIF 2".

Example

Displays image numbers

[Visual Basic.NET]
Private Sub Thumbnail1_ShowThumbnailImage(ByVal sender As Object, ByVal e As Newtone.ImageKit.Win.ThumbnailEventArgs) Handles Thumbnail1.ShowThumbnailImage
    Thumbnail1.Text = e.ImageNumber.ToString()
End Sub

[Visual C#.NET]
private void thumbnail1_ShowThumbnailImage(object sender, Newtone.ImageKit.Win.ThumbnailEventArgs e)
{
    Thumbnail1.Text = e.ImageNumber.ToString();
}

See Also

Thumbnail Members | Newtone.ImageKit.Win.Thumbnail

 

The ImageKit.NET3 is created by Newtone Corporation