[AccessD] Flashing Picture

Jim Dettman jimdettman at verizon.net
Mon Sep 25 06:48:27 CDT 2017


 Sometimes to a Me.Repaint in the OnOpen event will take care of things like this.

 Code execution will stop until Access instantiates every control and gets them up to date.  In this case, I'm not sure it would have stopped the flashing, but in my experience you get flashing when Access goes off to do something else, and each of those "something else's" cause a refresh of the form.  Problem is that often is spread out, where a repaint forces everything to happen at once.
  
 This is something to keep in mind too anytime when you need to refer to a control in the Open event.   If you don't issue a me.repaint first, the control may or may not be there yet.

  And I like Bill's work around; that is a pretty slick way to cover up the problem<g>

Jim.

-----Original Message-----
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin
Sent: Saturday, September 23, 2017 08:01 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Flashing Picture

Sneaky.  But effective. :)

R


-----Original Message-----
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson
Sent: Saturday, September 23, 2017 4:49 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Flashing Picture

Sometimes I cover problematic controls with another shape, set the form timer interval to 1, and in the timer event make the overlaid shape invisible and have the timer event reset the timer interval to 0.

On Fri, Sep 22, 2017 at 5:06 PM, Rocky Smolin <rockysmolin at bchacc.com>
wrote:

> Well, I tried the invisible/visible thing on the _Open event and this 
> time it worked.  So belay that last request.
>
> R
>
>
> -----Original Message-----
> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf 
> Of Rocky Smolin
> Sent: Friday, September 22, 2017 1:43 PM
> To: 'Access Developers discussion and problem solving'
> Cc: 'Off Topic'
> Subject: [AccessD] Flashing Picture
>
> Dear List(s):
>
>
>
> I have a form on a property management app in which the user enters 
> tasks to be done at different properties.  Now he wants to be able to 
> add pictures to the task which is easy – added a subform with an image 
> control and buttons on the subform to add, delete, and navigate 
> through the attached pictures – first, previous, next, last.
>
>
>
> The pictures are linked – I save the path and file name in a table.
>
>
>
> When the form first opens the picture flashes – not real fast, maybe ¼ 
> second on/off – four to eight times.  After that no more flashing, 
> even if you select a different task.  The flashing looks like the form 
> is doing some kind of refresh.
>
>
>
> Anyway, I haven’t been able to come up with a fix to stop the 
> flashing.  (I did try making the subform invisible in the Open event 
> and the DoEvents, and revisiblize it at the end of the Open event but 
> no cigar).
>
>
>
> Any ideas?
>
>
>
> MTIA
>
>
>
>
>
> Rocky Smolin
>
> Beach Access Software
>
> 760-683-5777
>
>  <http://www.bchacc.com> www.bchacc.com
>
>  <http://www.e-z-mrp.com> www.e-z-mrp.com
>
> Skype: rocky.smolin
>
>
>
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list