This event is generated when a thumbnail image is clicked.
[Visual Basic]Public Event Click As
EventHandler
[C#] public event EventHandler Click;
Explanation
The Click event is generated when a thumbnail image is clicked.
Example
This sample demonstrates how to show the file name selected in the Click event.
[Visual Basic.NET] Private Sub Thumbnail1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Thumbnail1.Click Label1.Text = Thumbnail1.FileName End Sub [Visual C#.NET] private void Thumbnail1_Click(object sender, System.EventArgs e) { Label1.Text = Thumbnail1.FileName; }
Note:
When using the Thumbnail Control on one form and displaying the images in an ImageKit Control on another form, the Thumbnail Control's EnablePaging property should be set to False.
For Example: When a thumbnail image in the Thumbnail Control on WebForm1 is selected, display the image in the ImageKit Control on WebForm2....
[Visual Basic.NET] Private Sub Thumbnail1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Thumbnail1.Click Server.Transfer("WebForm2.aspx?str=" + Thumbnail1.ImageDirectory + "/" + Thumbnail1.FileName)
End Sub [Visual C#.NET] private void Thumbnail1_Click(object sender, System.EventArgs e) { Response.Redirect("WebForm2.aspx?str=" + Thumbnail1.ImageDirectory + "/" + Thumbnail1.FileName, false);
}
See Also
Thumbnail Members | Newtone.ImageKit.Web.Thumbnail