screen painting problem

  • Thread starter Thread starter RickN
  • Start date Start date
R

RickN

I have a form loaded with a full screen form image. I've overlayed a number
of controls for filling in the form.
When the form opens, I can watch as each control loads (flickering). It
also does the same thing each time the form scrolls. What is the best
strategy for getting rid of the flickering?

Thanks,
Rick
 
Hi Rick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that the controls on a full screen form with
a background image flickers when loading and scrolling. If there is any
misunderstanding, please feel free to let me know.

Based on my experience, this is a typical performance issue. The controls
flickers because the CPU is busy redrawing the background and the controls
at that time. I think the background image might be a high quality JPEG
file, so it might be too big in size and you can try to resize it using
some tools. Make it smaller and change it to BMP might makes it faster for
the system to load.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Kevin:
You did understand the problem and you did correctly guess that we were
using a JPEG as our background image.
We tried your suggestion of reducing the file size and changing it to a
bitmap
file and it did help a little, but very little.
We tried double buffering and overloading the background painting with an
empty method, and this didn't make a big difference either.
What we did find that helped was changing our control from a windows form
with a panel to a user control with a panel, for some reason this helped
dramatically.
We also took our overlaying controls and put them on a separate panel so
that the
background image was on one panel and the overlays on a second, this helped
too.
We then resized our image so that for typical resolutions, the whole image
would appear
without need for scrolling.
After doing all these things, it is still not perfect, but within tolerable
limits.
Thanks again for taking the time to respond,
Rick Navaro
 
Back
Top