[C#] Onpaint events (invalidated) changing execution order after a period normal operation (runtime)
- by Luke Mcneice
Hi all,
I have 3 data graphs that are painted via the their paint events.
When I have data that I need to insert into the graph I call the controls invalidate() command.
The first control's paint event actually creates a bitmap buffer for the other 2 graphs to avoid repeating a long loop.
So the invalidate commands are in a specific order (1,2,3). This works well, however when the graphed data reaches the end of the graph window (PictureBox) where the data would normally start scrolling, the paint events begin firing in the wrong order (2,3,1).
has anyone came across this before? why might this be happening?