I am currently creating a custom control that should handle animation in a C # project. This is basically a list containing a fixed number of items that can be moved. An element (another user control with a background image and several generated labels) can move up, down, or be removed from the list.
I would like to create an animated movement as the elements move inside the container's user control, but it seems to me that moving the controls around the lines, such as
myCustomControl.left -= m_iSpeed;
triggered in a timer event flickers and has terrible rendering, even if double buffering is enabled.
So here's the question: What is the best way to create an animated C # flicker-free control? . Should I just create custom controls and process the entire drawing in the background image of the panel so that I generate? Is there a super animation method that I have not found? :)
Thanks!
source share