Hi Axel,
You have two options to reduce the flicker problem in your application.
Option 1: Draw Images Off-Screen
You can reduce the flicker when drawing large images by using a Graphics
object not associated with the form to create the image off-screen. Then
draw the image on the screen using a Graphics object of the form.
For more information on how to do this, please refer to the following MSDN
Document:
'How to: Draw Images Off-Screen'
http://msdn2.microsoft.com/en-us/library/ms172506.aspx
Option 2: Double Buffering
Double buffering uses a memory buffer to address the flicker problems
associated with multiple paint operations. When double buffering is
enabled, all paint operations are first rendered to a memory buffer instead
of the drawing surface on the screen. After all paint operations are
completed, the memory buffer is copied directly to the drawing surface
associated with it. Because only one graphics operation is performed on the
screen, the image flickering associated with complex painting operations is
eliminated.
For more information on double buffering, please refer to the following
MSDN Documents:
'Double Buffered Graphics'
https://msdn2.microsoft.com/en-us/library/b367a457.aspx
'How to: Manually Manage Buffered Graphics'
https://msdn2.microsoft.com/en-us/library/tdk2485d.aspx
'How to: Manually Render Buffered Graphics'
https://msdn2.microsoft.com/en-us/library/ka0yazs1.aspx
Hope this helps.
If you have any question, please feel free to me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.