Results 1 to 5 of 5
  1. #1
    mainerain is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Location
    Maine, USA
    Posts
    146

    Create thumbnail image that has Click Event to open picture in photo software

    I want to display an image on a form as a thumbnail but can be clicked to enlarge the image for better viewing.

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    Viewing in what, your default picture viewing app? Then your image control would be sized for the thumbnail images and its double click event might use Application.FollowHyperlink where the hyperlink is the image path for that thumbnail. That path would be a text field in the table for the path associated with the particular thumbnail.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    One method is to have two image controls on your form for the thumbnail and the larger image. Have the large one overlay the other. Make the larger image hidden by default.
    Add code to the click (or double click) event of the thumbnail to make the larger image visible. Or use the Mouse Move event to show it temporarily and hide it when the mouse moves away.

    Yet another method is to put the larger image in a separate popup form and make it visible using one of the above methods.
    I have used each of these methods at different times.

    Attached is a short MP4 video showing the use of a mouse move event & a popup form.
    I've had to make it a low resolution video to reduce file size. Hopefully you can see the idea
    Attached Files Attached Files
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #4
    mainerain is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Location
    Maine, USA
    Posts
    146
    Micron, that's what I was looking for. Thanks so much!

    isladogs, thanks for the vid, looks nice. Will keep that in mind.

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    We're glad to help. Come back to this thread if you get stuck with it.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. On Click Event to Open Web Page?
    By jennifers in forum Access
    Replies: 5
    Last Post: 04-15-2021, 03:30 PM
  2. Replies: 1
    Last Post: 11-21-2018, 05:02 PM
  3. Replies: 3
    Last Post: 09-26-2015, 06:44 AM
  4. Replies: 1
    Last Post: 08-24-2012, 06:50 AM
  5. Click button to open a new image
    By tia in forum Forms
    Replies: 2
    Last Post: 10-10-2011, 11:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums