Search code examples
c#winformsbackground-image

Background Image Doesnt Show When Right To Left Is True


In Windows Form When

RightToLeft=yes

and

RightToLeftLayout=true

i can not

set any background image for my form!


Solution

  • From the MSDN entry for the Form.RightToLeftLayout property:

    Owner draw is not supported when RightToLeftLayout is set to Yes. The owner draw events will still occur, but the behavior of any code you author in these events is not defined. Additionally, BackgroundImage, Opacity, TransparencyKey, and the painting events are not supported.