Click here to Skip to main content
16,016,570 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hello, I am facing a problem with background image of the form,
when I set the RightToLeftLayout property ture the background of the form disappered and return to the defult BackColor and could change the color,
but the image still disappered even if change it.
Posted
Comments
Sergey Alexandrovich Kryukov 8-Jul-12 4:54am    
Not enough information. How about a minimalistic but complete code sample?
--SA

1 solution

Here is the root cause for this problem. 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. Ref: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.righttoleftlayout.aspx[^]
 
Share this answer
 
Comments
Eman Ayad 8-Jul-12 12:03pm    
Thank you very much, but is there any solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900