Click or drag to resize

ThumbnailViewSelectedIndexChanged Event

Occurs when the selected thumbnail index changes.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: (.NET 4.5.2, x86)
public event EventHandler SelectedIndexChanged


Type: SystemEventHandler
Handle this event to respond to the user clicking or navigating to a thumbnail with the keyboard in order to view the full size image in an associated ImageViewer control.
SelectedIndexChanged (C#)
private void thumbnailView1_SelectedIndexChanged(object sender, System.EventArgs e)
     if (thumbnailView1.SelectedIndices.Count > 0)
          workspaceViewer1.Open(_currentFile, thumbnailView1.SelectedIndices[0]);
SelectedIndexChanged (Visual Basic)
Private  Sub thumbnailView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles thumbnailView1.SelectedIndexChanged
     If thumbnailView1.SelectedIndices.Count > 0 Then
          workspaceViewer1.Open(_currentFile, thumbnailView1.SelectedIndices(0))
     End If
End Sub
See Also