I want to display an image on a form as a thumbnail but can be clicked to enlarge the image for better viewing.
I want to display an image on a form as a thumbnail but can be clicked to enlarge the image for better viewing.
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.
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
Micron, that's what I was looking for. Thanks so much!
isladogs, thanks for the vid, looks nice. Will keep that in mind.
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.