I have four small images on this form. When I click on one, it gets enlarged, and when clicked again, it goes back to the original size. I've already code it using ctrl.Move and global variables to store original image dimensions, so that the the original image size can be restored whenever the larger image is clicked. The problem is that I am constantly adjusting the code to try to make the image an optimal size, so I would play with the location of image and the size by changing the codes.
Then I thought, perhaps I've made it much more complicated than it has to be. I could have just make another image control on the form with much larger dimension and make it visible and invisible matching the image of the smaller image whenever a smaller image is clicked. Maybe it's from lack of sleep last night, but for the life of me, I can't think of a way to pass the control source. So to clarify myself, ImgSmall1 has a control source of [imgFront], when I click on that image, I want the larger image to have the control source of [imFront]. That's pretty simple, right?
Sleep Deprived