473,289 Members | 1,829 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,289 software developers and data experts.

Intensive flickering

I have some forms with maybe around 30 controls on each and anytime I load
these forms different parts of it start flickering though not all of them at
once and not the same ones everytime. the forms are each generally separated
into 2-3 different panels and they start flickering with no apparent pattern.
I've tried turning on double buffering, same thing, no improvements. I've
tested it on different computers with different specifications and have
gotten more or less the same result. My own PC is an Intel P4 3.0Ghz
HT-enabled, 1 GB DDRII RAM, NVIDIA 6600GT 128 MB DDR3 RAM, 160GB Western
Digital Caviar 7200RPM (irrelevant really) running Windows XP Pro SP2, So I
see no reason for such flickering.
Btw each of the panels has a background image (PNGs) and most of the buttons
also have images. Most labels use a transparent background.
Any ideas?
Mar 26 '06 #1
5 2328
What are you doing when this flickering is occuring? Modifying controls?
Running through a paint method? Changing a datasource?

- Mark
On Mon, 27 Mar 2006 06:44:19 +0800, n00b <n0**@discussions.microsoft.com>
wrote:
I have some forms with maybe around 30 controls on each and anytime I
load
these forms different parts of it start flickering though not all of
them at
once and not the same ones everytime. the forms are each generally
separated
into 2-3 different panels and they start flickering with no apparent
pattern.
I've tried turning on double buffering, same thing, no improvements. I've
tested it on different computers with different specifications and have
gotten more or less the same result. My own PC is an Intel P4 3.0Ghz
HT-enabled, 1 GB DDRII RAM, NVIDIA 6600GT 128 MB DDR3 RAM, 160GB Western
Digital Caviar 7200RPM (irrelevant really) running Windows XP Pro SP2,
So I
see no reason for such flickering.
Btw each of the panels has a background image (PNGs) and most of the
buttons
also have images. Most labels use a transparent background.
Any ideas?


Mar 27 '06 #2
Sorry for the late reply.
When the flickering is happening the code is doing nothing, the parts of the
form just continuosly flicker. I'm not doing any paint menthod other than the
ones that are specific to each control. As for modifying controls the only
modification I make at any time is just showing a given panel and hiding all
other extra ones. I'm not using a datasource for data either, on form load
some data is added to the approriate listboxes... manually in the code, and
this is done inside a BeginUpdate and EndUpdate.

"Mark Harris" wrote:
What are you doing when this flickering is occuring? Modifying controls?
Running through a paint method? Changing a datasource?

- Mark
On Mon, 27 Mar 2006 06:44:19 +0800, n00b <n0**@discussions.microsoft.com>
wrote:
I have some forms with maybe around 30 controls on each and anytime I
load
these forms different parts of it start flickering though not all of
them at
once and not the same ones everytime. the forms are each generally
separated
into 2-3 different panels and they start flickering with no apparent
pattern.
I've tried turning on double buffering, same thing, no improvements. I've
tested it on different computers with different specifications and have
gotten more or less the same result. My own PC is an Intel P4 3.0Ghz
HT-enabled, 1 GB DDRII RAM, NVIDIA 6600GT 128 MB DDR3 RAM, 160GB Western
Digital Caviar 7200RPM (irrelevant really) running Windows XP Pro SP2,
So I
see no reason for such flickering.
Btw each of the panels has a background image (PNGs) and most of the
buttons
also have images. Most labels use a transparent background.
Any ideas?


Mar 28 '06 #3
Are you calling your methods to hide and show controls from within any
paint methods?

Mar 28 '06 #4
I'm not calling any methods in any of the paint methods, just in the load
method of the form and the OnClick events of buttons. (Btw just for future
reference is it bad to call such methods in paint methods?, Thnx)

"Steven Nagy" wrote:
Are you calling your methods to hide and show controls from within any
paint methods?

Mar 28 '06 #5
Well you have to be careful not to get caught in an infinite loop where
in your paint method you are doing something that tells the control to
repaint itself, thus causing constant repainting and thus flickering,
which is why I asked.

You could investigate the SetStyle method of controls, which might
alleviate some flickering, but you can't access this method without
inheriting from the control.
So for example, your panels would actually be n00bPanels, which in turn
inherit from Panel, and give them a method called SetStyle() which
calls the Panel base SetStyle method. There are SetStyle enums that
will help with flickering, but I would say that there is something else
that really needs attention.

Are you using a layout manager per chance for all those controls? How
are the panels placed, are they docked or anchored?
Are you handling the resize events for anything?

its a hard one...

Mar 29 '06 #6

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

Similar topics

3
by: Shoaib | last post by:
I have an IFRAME in HTML page whose source is set to some xml page.XML page gets displayed properly. But when i open some other IFRAME on top that IFRAME displaying xml, there is lot of flickering...
6
by: Joaquin Grech | last post by:
Hi I did alot of research on this on the web and msdn and I couldn't find anything. I have a listview showing as a grid (table looking, with rows and columns and no images at all, only text)....
1
by: Jack Smash | last post by:
Hi, I'm using a UserControl object for all the graphics handling in my application. However, if I select an image and move it around, I get flickering. So in order to get rid of the flickering,...
2
by: John Lee | last post by:
Hi, I have a windows application that uses the listview to display about 50 items in detailed view - 4 columns. The first column is static and other columns will be updated in 100-1000ms - it...
2
by: John Lee | last post by:
Thanks Jay for your response. I tried your code and it still flickering a lot. To demonstrate it, you can grab a listview, create 3 columns - name, value, timestamp, in form_load event to add 50...
8
by: benben | last post by:
I created a form and overrided OnPaint, OnClick and OnResize methods. My OnPaint calls base.OnPaint then repaints the whole screen. The screen flickers a lot! It didn't happen when the app was...
0
by: none | last post by:
Hello I have created a realtime data intensive application in C++/CLI. Data streams into this application through a set of ActiveX controls. For example, each stock symbol will be assigned to...
6
by: Mark Thompson | last post by:
I have a problem with my Visual Basic .NET 2003 application which I have so far been unable to resolve. I am trying to get an OpenGL control that I have created working properly as a control on...
1
by: sj | last post by:
Flickering Subform! I am developing a Quotation system in Access 03. At entry, users enter data thru' a form with subform. However, the subform keep flicker when I run the system on computer...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.