473,583 Members | 4,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3509
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************ *******@NOQUIER OSPAMportalvbNO SPAM.com.NOQUIE ROSPAM> wrote in
message news:E3******** *************** ***********@mic rosoft.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************ *******@NOQUIER OSPAMportalvbNO SPAM.com.NOQUIE ROSPAM> wrote in
message news:E3******** *************** ***********@mic rosoft.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
2199
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 make the polygon move but the screen flickers because I call invalidate() on the mouse down event. I did do offscreen buffering but there is still...
1
3627
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 in my Form. I load this image from the filesystem into the PictureBox and then I draw random little lines on the image. Then when I minimize and...
1
1406
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 Ctrl-Tab. This results in a seamless toggling between the two forms - no flickering. However, when I attempt to use my own code to toggle between the...
3
5105
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 Ctrl-Tab. This results in a seamless toggling between the two forms - no flickering. However, when I attempt to use my own code to toggle between the...
2
11118
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 lot of flicker in the screen.
0
1445
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 rollover effects using simple javascript. Before these images were defined in the HTML (IMG src and TD Backgrounds), and it worked fine. You moused over...
3
5664
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 few buttons. I'm creating interfaces now with many more buttons than "just a few". I solved the maintenance problem by having generic button...
17
4698
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 scroll... eg Override OnPain and OnPaintBackground Override WndProc
8
7658
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 for help on this issue, I ran over a anser Linda Liu at :...
0
7894
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7825
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7933
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5372
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3816
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1155
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.