This event is generated before each image is loaded on the Thumbnail Control.

[Visual Basic] Public Event StratLoadFile As ThumbnailLoadEventHandler
[C#] public event ThumbnailLoadEventHandler StratLoadFile;

Event Data

 The event handler retrieves arguments of type ThumbnailLoadEventArgs

Explanation

The StartLoadFile event is generated before each image is loaded on the Thumbnail Control. Note: This event is NOT generated if a thumbnail file (ThumbnailFile property) is used to load the images. To cancel processing in the Thumbnail Control, set the Cancel property to True within this event.

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


Regarding property for the ThumbnailLoadEventArgs 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 some information about images loaded.

[Visual Basic.NET]
Private Sub Thumbnail1_StartLoadFile(ByVal sender As Object, ByVal e As Newtone.ImageKit.Win.ThumbnailLoadEventArgs) Handles Thumbnail1.StratLoadFile
    Label1.Text = e.ImageNumber.ToString() + " / " + e.TotalImageNumber.ToString();
End Sub

[Visual C#.NET]
private void thumbnail1_StartLoadFile(object sender, Newtone.ImageKit.Win.ThumbnailLoadEventArgs e)
{
    label1.Text = e.ImageNumber.ToString() + " / " + e.TotalImageNumber.ToString();
}

See Also

Thumbnail Members | Newtone.ImageKit.Win.Thumbnail

 

The ImageKit.NET3 is created by Newtone Corporation