473,883 Members | 1,591 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 3536
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
2225
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 flashing in the screen. Let me explain what I am doing. in the pain even handler of the control I...
1
3649
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 reopen the application the little lines are gone. Is there a way to save my lines in memory and...
1
1415
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 two forms (the user clicks a menu Window>>Child1 or Window>>Child2 to fire this code), I get a...
3
5115
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 two forms (the user clicks a menu Window>>Child1 or Window>>Child2 to fire this code), I get a...
2
11181
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
1503
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 a button, for instance, and it changed immediately. Now we have switched everything to external...
3
5684
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 images, one for each state, and having them be background images for text containers, DIVs in this...
17
4770
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
7707
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 : http://groups.google.de/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/39e9f7d0b96b048f?hl=de where I found the following (quick and dirty )solution to the flicker
0
11151
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10750
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10858
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9577
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7974
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5804
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3237
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.