Problem background... (1 Viewer)

SalmanZeiad

Member
Local time
Today, 13:03
Joined
Oct 30, 2017
Messages
112
\\\\\\\\\\\\\\
Why when pressing a button in the main form the background blinks in the main form with each pressure and does not remain stationary

i used jpg,bmp,png>>>>same problem
 

jocph

Member
Local time
Today, 19:03
Joined
Sep 12, 2014
Messages
61
The form may be doing a refresh or a repaint. And there must be some code behind the button that makes the background move.
 

Isaac

Lifelong Learner
Local time
Today, 04:03
Joined
Mar 14, 2017
Messages
8,738
Maybe it's a sizing or placement issue. Separate the button from the picture a little and see?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:03
Joined
May 7, 2009
Messages
19,169
use the Form's Picture property to add image, do not use Image Control.
 

Isaac

Lifelong Learner
Local time
Today, 04:03
Joined
Mar 14, 2017
Messages
8,738
No idea if this pertains to you, but one thing I would glance at is if you have gotfocus, lostfocus, and mouseover events going on here.
 

SurreyNick

Member
Local time
Today, 11:03
Joined
Feb 12, 2020
Messages
127
Are you able to post a copy of the form here for us to look at?

I seem to recall I had a similar problem, but I can't remember exactly what caused it, just that I did resolve it.

The approach I took was to rebuild the form bit by bit starting with the background formatting then adding text, fields, other controls, sub-forms and finally images in that order, checking after "each" addition to see if the problem manifested itself.

If you do this you may be able to identify the offending item and can then focus your efforts on the culprit.

Worth a try at least?

With images you might also want to look at layering i.e. where they reside in terms of sent to back - brought to front. Just a thought.
 

Users who are viewing this thread

Top Bottom