473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Flicker when loading forms using background bitmap

Hi all,

I have to develop a "skinned" application and I have a problem with the
graphics.
When a form is loaded and displayed there's aways a flicker where all the
controls are located on the form. It seems like the controls erase the
background and this cause a flicker everytime a form i loaded.
When I hide and show forms that are already loaded there's no flicker, it's
just when the form is loaded the first time.

I'm using DoubleBuffering for the form and the controls but this doesn't
make any difference.
If any one knows how this flicker can be reduced or removed please let me
know.

Thanks for your help.

Per
Nov 21 '05 #1
3 3492
Hi Per,

I don't know if the next thread will help you. I hope that you'll find any
help on it.
http://www.devcity.net/forums/topic.asp?tid=49353

Kind Regards,

Jorge Serrano
MVP VB.NET
"Per Dunberg" wrote:
Hi all,

I have to develop a "skinned" application and I have a problem with the
graphics.
When a form is loaded and displayed there's aways a flicker where all the
controls are located on the form. It seems like the controls erase the
background and this cause a flicker everytime a form i loaded.
When I hide and show forms that are already loaded there's no flicker, it's
just when the form is loaded the first time.

I'm using DoubleBuffering for the form and the controls but this doesn't
make any difference.
If any one knows how this flicker can be reduced or removed please let me
know.

Thanks for your help.

Per

Nov 21 '05 #2
Thanks Jorge.
Unfortunally there is no help to this problem in that thread.
In fact the sample posted ("Drawing without flicker") in that thread has the
same problem.
The drawing of the image that you can move around is ok but when the form
loads there's flicker just before loading the panel on the form.

Create a new project and set an image as background, and add a couple of
controls to the form.
Then load the form and have a window in the background (or the desktop) with
a solid color.
Then you will see that when the form is displayed the background for the all
the controls on the form flickers and displays the solid color just before
the control shows.
In fact you do not even need to set an image as background on the form, but
it just makes the flicker more visible.
If anyone knows how this can be solved or have any other ideasd that would
be very appreciated.

Is there anyway to not have controls erase the background before they are
drawned?

Thanks.
"Jorge Serrano [MVP VB]"
<NO*******************@NOQUIEROSPAMportalvbNOSPAM. com.NOQUIEROSPAM> wrote in
message news:E3**********************************@microsof t.com...
Hi Per,

I don't know if the next thread will help you. I hope that you'll find any
help on it.
http://www.devcity.net/forums/topic.asp?tid=49353

Kind Regards,

Jorge Serrano
MVP VB.NET
"Per Dunberg" wrote:
Hi all,

I have to develop a "skinned" application and I have a problem with the
graphics.
When a form is loaded and displayed there's aways a flicker where all the controls are located on the form. It seems like the controls erase the
background and this cause a flicker everytime a form i loaded.
When I hide and show forms that are already loaded there's no flicker, it's just when the form is loaded the first time.

I'm using DoubleBuffering for the form and the controls but this doesn't
make any difference.
If any one knows how this flicker can be reduced or removed please let me know.

Thanks for your help.

Per

Nov 21 '05 #3
Hi Jorge,

Thanks for you answer.

The information on the provided website didn't help.
Actually, I downloaded "Drawing without flicker" and it the problem can also
be seen with that sample.
The redrawing works just fine but the first time the form is loaded the
controls erase the background which causes a flicker. Once the form is
completely loaded then there is no problems with the drawing.

Is there anyway to prevent controls from erasing the background before they
are painted.
Another tricks to have forms load faster?

Kind Regards,

Per Dunberg
"Jorge Serrano [MVP VB]"
<NO*******************@NOQUIEROSPAMportalvbNOSPAM. com.NOQUIEROSPAM> wrote in
message news:E3**********************************@microsof t.com...
Hi Per,

I don't know if the next thread will help you. I hope that you'll find any
help on it.
http://www.devcity.net/forums/topic.asp?tid=49353

Kind Regards,

Jorge Serrano
MVP VB.NET
"Per Dunberg" wrote:
Hi all,

I have to develop a "skinned" application and I have a problem with the
graphics.
When a form is loaded and displayed there's aways a flicker where all the controls are located on the form. It seems like the controls erase the
background and this cause a flicker everytime a form i loaded.
When I hide and show forms that are already loaded there's no flicker, it's just when the form is loaded the first time.

I'm using DoubleBuffering for the form and the controls but this doesn't
make any difference.
If any one knows how this flicker can be reduced or removed please let me know.

Thanks for your help.

Per

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Abhishek | last post by:
My objective is quite simple. I want to display a JPG image and then on it overlay a polygon. This polygon can be moved by a user. The even is trapped on the mouse down event of the control. I can...
1
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox...
1
by: Jesse Aufiero | last post by:
I have an MDI application with two maximized child forms. At any given time only one of the child forms is in the foreground and visible. To alternate between the two child forms, I can type...
3
by: Jesse Aufiero | last post by:
I have an MDI application with two maximized child forms. At any given time only one of the child forms is in the foreground and visible. To alternate between the two child forms, I can type...
2
by: AS | last post by:
Hi, I have a windows form with a background image - set through the forms background image property. The form also has panels and icons on top of it. When this form is loading, there's a...
0
by: Blue Apricot | last post by:
I think this is straighforward enough so I don't need sample code, but I will make an example if someone doesn't understand. BACKGROUND: We have built a "skinnable" interface, which uses...
3
by: seamlyne | last post by:
The first method I ever used for multiple state buttons was to create a graphic for each button for each state: AboutUs_on, AbooutUs_over, AboutUs_out, etc. That works great when there are just a...
17
by: pigeonrandle | last post by:
Hi, I have seen loads of different ways to do this, but the all seem to yield the same result - text that doesn't flicker when it's moving too slowly! Does anyone know 'the best way' to make text...
8
by: Rainer Queck | last post by:
Hello NG, I had/have a bad flicker Problem with my Application. On starting some applications, while my app was running, the whole Display started to flicker. Even the desktop Icons! Looking...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.