C#:背景颜色问题 [英] C#: Background color problem

查看:439
本文介绍了C#:背景颜色问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在C#中的背景颜色的麻烦。出于某种原因,他们只是不工作。特别是在System.Windows.Forms.Panel控制。设置背景色属性什么都不做。我所是灰色的,所有我所做的一切,也不会改变它。有什么可能被重写呢?我在这接近走错了路?

I am having trouble with background colors in C#. For some reason they are simply not working. Specifically on the System.Windows.Forms.Panel control. Setting the BackColor property does nothing. All I have is gray and all the efforts I have made will not change it. Is there something that could be overriding this? Am I approaching this the wrong way?

推荐答案

我有这个问题,在一个形成两个重叠面板。我无意中有一个面板其他主要的孩子,当我在设计视图中创建它们。

I had this problem with two overlayed panels in one form. I inadvertently had one panel as a child of the other main when I created them in Design View.

这篇关于C#:背景颜色问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆