in

Archived Data Techniques Forums

how to call Thumbnail item double click event

Last post 02-15-2010 5:28 PM by brianb. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-09-2010 11:37 AM

    how to call Thumbnail item double click event

    Hi all, 

    Thank you for advance.

    1.How to Add a double click event (in Thumbnail image) on Thumbnail viewer control.

     

    2.How to set threshold but i can setup Brightness and Contrast.

    give me the sample code in c#.

     

  • 02-15-2010 5:28 PM In reply to

    • brianb
    • Top 10 Contributor
    • Joined on 09-29-2009
    • Burnsville, NC
    • Posts 58

    Re: how to call Thumbnail item double click event

    rangasamy007:
    1.How to Add a double click event (in Thumbnail image) on Thumbnail viewer control.

    You simply wire up your Thumbnail Viewer to the existing DoubleClick event by:

    • Selecting the Thumbnail Viewer control in design mode
    • Opening the Event list in the Properties grid
    • Double clicking the DoubleClick event

    Doing this will create a default event for you similar to this:

    private void thumbNail1_DoubleClick(object sender, EventArgs e)
    {
       System.Diagnostics.Debug.WriteLine("thumbNail1_DoubleClick fired!");
    }

    I added the WriteLine call for you to see when it fires.  However, you'll have to add the code we discussed previously with respect to how to determine if you are clicking on or double clicking on a Thumbnail.  See some of your other posts for code on how to do that.

     

    Brian
    Technical Support
    Data Techniques
    Support Options

    Knowledgebase

    Forums
Page 1 of 1 (2 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.