This example demonstrates the how a menu item can be used to toggle the SelectAllThumbs and DeselectAllThumbs methods. When the menu item gets checked, all thumbnails are selected. They are deselected when the menu item becomes unchecked.
Private Sub mnuSelect_Click()
If mnuSelect.Checked = True Then
ImgThumbnail1.DeselectAllThumbs
mnuSelect.Checked = False
Else
ImgThumbnail1.SelectAllThumbs
mnuSelect.Checked = True
End If
End Sub