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

[Visual Basic]   thumbcontrolname_StartLoadFile(ByVal PathName As String, ByVal FileName As String, ByVal ImageNumber As Integer, ByVal MaxImage As Integer)
[Visual C++]     OnStartLoadFilethumbcontrolname(LPCTSTR PathName, LPCTSTR FileName, short ImageNumber, short MaxImage)
[VB.NET]   thumbcontrolname_StartLoadFile(ByVal sender As System.Object, ByVal e AxImageKit10Thumb(A)Lib.IImageKitThumbEvents_StartLoadFileEvent)
[C#.NET]   thumbcontrolname_StartLoadFile(object sender, AxImageKit10Thumb(A)Lib.IImageKitThumbEvents_StartLoadFileEvent e)

* AxImageKit10ThumbALib refers to the ANSI version, AxImageKit10ThumbLib refers to the Unicode version.

Parameters

Name Explanation
PathName The path and directory name of the image loaded into the Thumbnail Control
FileName The filename of the image loaded into the Thumbnail Control
ImageNumber The sequential number of the thumbnail image
MaxImage The total number of images to be loaded into the Thumbnail Control

In VB.NET and C#.NET, the second argument e contains the PathName and other parameters. (The first letter is lower case)

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.

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".

 

The ImageKit10 ActiveX is a product created by Newtone Corporation