c# - Windows Forms, Right To Left Layout BG Image not showing -


i have right left layout applied form. , there form, has background image, , not showing when righttoleft true. what's problem ? thanks

check remarks section here on msdn.

for form.righttoleftlayout property:

backgroundimage, opacity, transparencykey, , painting events not supported.

workaround (after setting righttoleftlayout = true add panel , set background image):

this.righttoleftlayout = true; panel pnl = new panel(); pnl.dock = dockstyle.fill; pnl.backgroundimage = system.drawing.image.fromfile("d:\\background.png"); pnl.backgroundimagelayout = imagelayout.stretch;    this.controls.add(pnl); pnl.sendtoback(); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -