Updating Image Controls In Real-Time

Nightvoice

New member
Local time
Today, 15:06
Joined
Oct 24, 2025
Messages
2
I have an application that saves its screenshots rotated 90° clockwise. The Access app I've written so far addresses this by running a PowerShell script that correctly rotates the image file 90° counterclockwise upon a button click and resaves it, and the goal is to get the display of the image control referencing it to update as well (it's linked via the .Picture property). So far, I've tried the .Refresh, .Repaint, .Recalculate, .Requery actions and several other things to no avail. If I click on the parent table form record the control is linked to, it refreshes correctly, but this is a pain. Any ideas?
 
Have you tested to reset (set again) the .Picture property? I've tested it and after reseting it the image is updated on the screen
 
Last edited:
For me, using .Refresh works. Maybe add a DoEvents or two?
 
@theDBguy
It doesn't work for me. If I change the underlying image without changing its .Picture property executing a form .Refresh doesn't update the image on the screen.
Oh, I see. I think the difference is, in mine, I am using the Control Source property instead of the Picture property.
 
I also use the Picture property in my Folder Image Viewer example app:

This automatically rotates or flips the image horizontally or vertically as appropriate, together with an option to save the modified version.
For example
1761326900183.png
 

Users who are viewing this thread

Back
Top Bottom