我在我的项目 C# winform 中将背景图像设置为窗体,但是当将窗体属性设置为
RightToLeft=Yes and RightToLeftLayout=True
然后消失我的背景图片。
有人帮帮我吗?
最佳答案
您可以通过覆盖表单的 OnPaintBackground
方法手动绘制图像:
protected override void OnPaintBackground(PaintEventArgs e)
{
e.Graphics.DrawImage(Properties.Resources.SampleImage,
new Rectangle(Point.Empty, this.ClientSize));
}
关于c# - 从右到左布局的隐藏背景图像 C# winform?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23536199/