This event is generated when a thumbnail image is selected. Thumbnail images can be selected by clicking the mouse, using the keyboard, or executing the SelectImage method.

[Visual Basic]   thumbcontrolname_SelectFile(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++]     OnSelectFilethumbcontrolname(LPCTSTR PathName, LPCTSTR FileName, short ImageNumber, short MaxImage, short Left, short Top, short Right, short Bottom)
[VB.NET]   thumbcontrolname_SelectFile(ByVal sender As System.Object, ByVal e As AxImageKit10Thumb(A)Lib._IIMageKitThumbEvents_SelectFileEvent)
[C#.NET]   thumbcontrolname_SelectFile(object sender, AxImageKit10Thumb(A)Lib._IIMageKitThumbEvents_SelectFileEvent e)

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

Parameters

Name Explanation
PathName The directory name and path of the image that was selected
FileName The file name of the image that was selected
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 was selected. (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 was selected. (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 was selected. (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 was selected. (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 SelectFile event is generated when a thumbnail image is selected. Thumbnail images can be selected by clicking the mouse, using the keyboard, or executing the SelectImage method. If the thumbnail image is not displayed on the Thumbnail Control then this event is not generated. Furthermore, if the selected thumbnail frame has no thumbnail displayed then the PathName and FileName parameters will contain empty strings. 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"

By pressing the Ctrl key while clicking with the mouse, several thumbnails can be selected or deselected. In either case, this event is generated. To determine whether or not a particular thumbnail image is selected, please use the IsSelected method.

Thumbnail images can be selected by clicking the mouse, using the keyboard, or executing the SelectImage method. By pressing the Shift key while clicking with the mouse, a series of thumbnails can be selected. This event is generated multiple times for each thumbnail image that has been selected.

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

For example:
Private Sub IkThumb1_SelectFile(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 differences from the ImageKit5:

From the release of the ImageKit6, Left, Top, Right, and Bottom parameters have been added to this event.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation