Right-To-Left and Painting Issues - SOLVED

Richard Birkby sent me an e-mail on this issue, suggesting that I should flip the ResizeRedraw bit on for the control style. That made it "better" but it didn't make all of the painting problems go away. However, he got my brain going and I eventually came up with this:

this.SetStyle(ControlStyles.AllPaintingInWmPaint | 
    ControlStyles.DoubleBuffer | 
    ControlStyles.ResizeRedraw, true);

That fixes it. Now my image doesn't get smeared. I'm still a bit bothered that I don't understand why I don't have to do this when the control isn't mirrored, but at least I have a solution.

* Posted at 01.06.2005 01:26:32 PM CST | Link *

Blog History