SetManualThumb Example VB

This example shows how thumbnail pages can be programmatically added to the Thumbnail control. It also demonstrates how the source file and page can be retrieved.

Private Sub cmdManual_Click()
    Dim strThumbFile, strThumbMsg As String
    Dim iSrcPage As Integer    
    'Add 2 thumbnails to the control via interactive mode
    ImgThumbnail1.SetManualMode 2
    ImgThumbnail1.SetManualThumb 1, "C:\windows\waves.bmp", 1
    ImgThumbnail1.SetManualThumb 2, "c:\windows\tiles.bmp", 1
End Sub