I have a form with a listbox containing description and links to jpegs. The listbox allows picture selection to an Image control.
Problem is the listbox, image control, and other form controls flash badly when changing images. I have tried to hide the Image Control during picture changes but problem still exists. Don't know if anyone has seen this or has any suggestions. Thanks
Private Sub List14_Click()
Me.Image17.Visible = False
Me.Image17.Picture = "C:\Camera\" & Me.List14.Value
DoEvents
Me.Image17.Visible = True
End Sub
Form controls flicker changing picture in Image
-
- StarLounger
- Posts: 56
- Joined: 24 Jan 2012, 21:48
-
- Administrator
- Posts: 78233
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Form controls flicker changing picture in Image
I guess it depends on the video card - on my PC, I hardly notice any flicker.
Try this:
Try this:
Code: Select all
Private Sub List14_Click()
Echo False
Me.Image17.Picture = "C:\Camera\" & Me.List14.Value
Echo True
End Sub
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 56
- Joined: 24 Jan 2012, 21:48
Re: Form controls flicker changing picture in Image
Thankyou for trying Hans, no, it's still the same.
Thanks for confirming that you don't have the problem, guess it's my PC needing an upgrade. Should have put it on my Christmas List!!
Thanks for confirming that you don't have the problem, guess it's my PC needing an upgrade. Should have put it on my Christmas List!!
-
- Administrator
- Posts: 78233
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Form controls flicker changing picture in Image
Hardware does make a difference. On my previous PC (a factor 10 slower than the current one), images flashed noticeably when being changed.
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 56
- Joined: 24 Jan 2012, 21:48
Re: Form controls flicker changing picture in Image
Thanks Hans, it was difficult to know what it was, just remembered past problems with text boxes flashing on tab controls a while back, and thought something like that had crept back into Access 2010 with my problem. I will have to synchronise my blinking!!
Thanks again
Thanks again
-
- StarLounger
- Posts: 56
- Joined: 24 Jan 2012, 21:48
Re: Runtime Error 3420 - Access 2010
Thankyou Hans. I am wondering if it's a memeory problem on the PC? Sometimes it works, sometimes it doesn't. I thought it was something to do with the size I had made the control however even when set small it does not always work. If I close Access and go back it works? I don't have any problems with the normal player, in full screen mode etc. Maybe within Access memory is getting limited? I will try this on other PC's to see if it's localised to this PC. Thanks, I will get back.
-
- Administrator
- Posts: 78233
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Runtime Error 3420 - Access 2010
Did you intend to post your reply in this thread, or perhaps in Form controls flicker changing picture in Image?
Best wishes,
Hans
Hans
-
- StarLounger
- Posts: 56
- Joined: 24 Jan 2012, 21:48
Re: Runtime Error 3420 - Access 2010
Sorry Hans, you are correct, I have inadvertantly put it in the wrong thread. Not sure if I can delete it, move it?
-
- Administrator
- Posts: 78233
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Form controls flicker changing picture in Image
I have moved the posts (I hope they're in the correct place now - I became confused halfway through )
Best wishes,
Hans
Hans