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 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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |