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

Avoiding Flicker When Controls are Moved

TC
I am buiding a control which contains many constituent controls. In response
to certain events, several of the constituent controls move and change their
appearance. I would like the changes to happen all at once, but they don't;
they happen sequentially, and this causes a flickering effect which looks
terrible.

Is there any way I can freeze the appearance of my control until all the
constituent controls are changed? Then, I could update the appearance once,
giving me a clean transition to the new state.
-TC
Nov 20 '05 #1
3 1423
Check out the BeginUpdate and EndUpdate methods

Shawn Shelton

TC wrote:
I am buiding a control which contains many constituent controls. In response
to certain events, several of the constituent controls move and change their
appearance. I would like the changes to happen all at once, but they don't;
they happen sequentially, and this causes a flickering effect which looks
terrible.

Is there any way I can freeze the appearance of my control until all the
constituent controls are changed? Then, I could update the appearance once,
giving me a clean transition to the new state.
-TC


Nov 20 '05 #2
Hi,

Did you try double buffering the control?
myControl.SetStyle(UserPaint Or AllPaintingInWmPaint Or DoubleBuffer,
True)Ken----------------------"TC" <q@w.e> wrote in message
news:9KXpb.8602$pL6.2922@okepread02...
I am buiding a control which contains many constituent controls. In response to certain events, several of the constituent controls move and change their appearance. I would like the changes to happen all at once, but they don't; they happen sequentially, and this causes a flickering effect which looks
terrible.

Is there any way I can freeze the appearance of my control until all the
constituent controls are changed? Then, I could update the appearance once, giving me a clean transition to the new state.
-TC

Nov 20 '05 #3
Try SuspendLayout and ResumeLayout for all affected controls

"TC" <q@w.e> schrieb im Newsbeitrag news:9KXpb.8602$pL6.2922@okepread02...
I am buiding a control which contains many constituent controls. In response to certain events, several of the constituent controls move and change their appearance. I would like the changes to happen all at once, but they don't; they happen sequentially, and this causes a flickering effect which looks
terrible.

Is there any way I can freeze the appearance of my control until all the
constituent controls are changed? Then, I could update the appearance once, giving me a clean transition to the new state.
-TC

Nov 20 '05 #4

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

Similar topics

1
by: Michael | last post by:
Here is my problem: I have a MDI application and when I load my child forms I get alot of flicker. I have tried to implement double buffering : Public Sub New() MyBase.New() 'This call is...
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...
5
by: Ian Stiles | last post by:
I have tried everything under the sun to get rid of horrible flashing and flickering that occurs on a CSharp form when the form hosts a TreeView or WebBrowser control and then you resize the form....
2
by: Jon Pope | last post by:
I'm programmatically adding controls to a form. The issue I'm seeing is that I can see the controls lay themselves out on the form during runtime. I'd rather not see this. I've used the...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
20
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
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...
4
by: Frank Rizzo | last post by:
Hello, I inherited a large Winforms project that is suffering from excessive flicker when switching between portions of the application. I've noticed that most parts of the application (user...
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.