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

[Visual Basic]   thumbcontrolname_ShowThumbImage(ByVal PathName As String, ByVal FileName As String, ByVal ImageNumber As Integer, ByVal MaxImage As Integer, ByVal Left As Integer, ByVal Top As Integer, ByVal Right As Integer, ByVal Bottom As Integer)
[Visual C++]     OnShowThumbImagethumbcontrolname(LPCTSTR PathName, LPCTSTR FileName, short ImageNumber, short MaxImage, short Left, short Top, short Right, short Bottom)
[VB.NET]   thumbcontrolname_ShowThumbImage(ByVal sender As System.Object, ByVal e As AxImageKit9Thumb(A)Lib._IImageKitThumbEvents_ShowThumbImageEvent)
[C#.NET]   thumbcontrolname_ShowThumbImage(object sender, AxImageKit9Thumb(A)Lib._IImageKitThumbEvents_ShowThumbImageEvent e)

* AxImageKit9ThumbALib refers to the ANSI version, AxImageKit9ThumbLib refers to the Unicode version.

Parameters

Name Explanation
PathName The directory name and path of the image that will be displayed
FileName The file name of the image that will be displayed
ImageNumber The sequential number of the thumbnail image
MaxImage The total number of images to be loaded into the Thumbnail Control
Left The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the x coordinate of the top left corner of the thumbnail frame)
Top The position, in pixels, of the top of the thumbnail frame that will be displayed. (This is the y coordinate of the top left corner of the thumbnail frame)
Right The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the x coordinate of the bottom right corner of the thumbnail frame)
Bottom The position, in pixels, of the left side of the thumbnail frame that will be displayed. (This is the y coordinate of the bottom right corner of the thumbnail frame)

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

Explanation

The ShowThumbImage event is generated just after a thumbnail image is displayed in the thumbnail control. This event is generated for each image displayed in the thumbnail control and if the Thumbnail Control is forced to repaint, the event will be generated even though the Display method has not been called.

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

Note for Visual Basic: In order to use the Left($) function and Right($) function within the ShowThumbImage event, please change the names of the Left and Right parameters in this event.

For example:
Private Sub IkThumb1_ShowThumbImage(ByVal PathName As String, ByVal FileName As String, ByVal ImageNumber As Integer, ByVal MaxImage As Integer, ByVal Left_ As Integer, ByVal Top As Integer, ByVal Right_ As Integer, ByVal Bottom As Integer)

End Sub

 

The ImageKit9 ActiveX is a product created by Newtone Corporation