473,402 Members | 2,046 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,402 software developers and data experts.

Control flicker

Hi all

I had marked a thread in here that I can no longer find so I will have to
re-ask a question I'm afraid.

I have a wizard based form. When you move to another step it removes the
current step's control and adds the control for the next step. This causes
lots of flickering in the GUI as the control is removed, and then the new
one is first added and then resizes to fit the client area.

What can I do to make this smoother?
Thanks
--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Nov 7 '08 #1
5 3218
Hi Pete,

You could try this a couple of ways.

The first is the easiest to impliment: Try setting DoubleBuffered to True on
your form's Properties from the Design View. Sometimes that helps.

Second idea: Use a tab control and hide the tabs (I think this is what most
installers use as they go from step to step). That way, all of your controls
are already loaded and you are just showing or hiding them.

If this isn't what you're asking, please give a few more details.

Regards,
Joe Pool

"Peter Morris" wrote:
Hi all

I had marked a thread in here that I can no longer find so I will have to
re-ask a question I'm afraid.

I have a wizard based form. When you move to another step it removes the
current step's control and adds the control for the next step. This causes
lots of flickering in the GUI as the control is removed, and then the new
one is first added and then resizes to fit the client area.

What can I do to make this smoother?
Thanks
--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Nov 7 '08 #2
The first is the easiest to impliment: Try setting DoubleBuffered to True
on
your form's Properties from the Design View. Sometimes that helps.
Unfortunately that makes no difference.
Second idea: Use a tab control and hide the tabs (I think this is what
most
installers use as they go from step to step). That way, all of your
controls
are already loaded and you are just showing or hiding them.
The controls are created dynamically based on the view that is required to
be displayed, so it's not possible to do it this way.
Regards
--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Nov 7 '08 #3
Ok, how about this:

Create a new panel (or have a panel on your desktop with visibility =
false), do all of your drawing, then set Visible=true.

?

"Peter Morris" wrote:
The first is the easiest to impliment: Try setting DoubleBuffered to True
on
your form's Properties from the Design View. Sometimes that helps.

Unfortunately that makes no difference.
Second idea: Use a tab control and hide the tabs (I think this is what
most
installers use as they go from step to step). That way, all of your
controls
are already loaded and you are just showing or hiding them.

The controls are created dynamically based on the view that is required to
be displayed, so it's not possible to do it this way.
Regards
--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Nov 7 '08 #4
I'm not doing any drawing. I am removing a complex control from my form and
then adding a new complex control, and when I do it flickers a lot.

--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Nov 7 '08 #5
Use SuspendLayout before you start adding/removing controls and
ResumeLayout when you are done.
Nov 7 '08 #6

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

Similar topics

4
by: Marek Mänd | last post by:
This seems an IE issue only: 4253 bytes testcase: http://www.hot.ee/idaliiga/testcases/ieselect/bnlinkingselectinmsie.htm Can one have 1) a mouseover/mouseout element on TBODY 2) change in...
0
by: Deborah V. Gardner | last post by:
I am using Access 2000 and have a form with an image background (the clouds that came with Office). I also have an OnChange event on the Item control. Me.txtLength = 55 - (Len(Me.Item.Text)) ...
4
by: Robin Tucker | last post by:
I wanted to enable double buffering for my list view control to avoid flicker when adding or removing new records, so I subclassed it. However, I just plain don't get ANYTHING displayed after...
3
by: Per Dunberg | last post by:
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...
1
by: Christopher Shanahan | last post by:
Hello, I've built a data entry form for a survey database that appears to make the entire form flicker when I mouse over anyn of the label controls. I suspect that it has to do with the...
5
by: Jim Hubbard | last post by:
Has anyone seen a fix for the flickering effect you get when resizing a Webbrowser control? It's really irritating and doesn't make for a professional-looking application.
1
by: Ingo Beyer | last post by:
Hello, I created a windows form with vs.net 2005 / c#. This control has a TabControl with 16 TabPages. On every TabPage there are a diffrent number of Controls. - Every TabPage has a background...
8
by: Lee | last post by:
Hi all, I'm trying to programatically change the background color of lines of text and running into a few difficulties, anyone got any suggestions? my relevant code is as follows: public void...
4
by: CP Developer | last post by:
I have a tab control in my application, and any time I mouse over or off of a tab, it flickers. It looks like it is redrawing it (albeit slowly) each time one of these mouse events are raised. I...
0
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...
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...
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.