从面板更改 formwindows 背景色
我有一个面板停靠在 Windows 窗体的右侧。我使用面板上的设置设置了颜色,但我想将主窗体(而不是面板)背景色更新为新设置。但是当我使用 me.backcolor = 设置时,它会更改面板背景色。
这也适用于带有 Visual Studios 2008 的 VB.net Windows 窗体,
谢谢
I have a panel that is docked to the right side of a windows form. I set a color with a setting on the panel but I want to then update the main form (not the panel) backcolor to the new setting. But when I use me.backcolor = setting it changes the panels backcolor.
This is also with VB.net windows forms with Visual Studios 2008
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用以下方法更改父级的
BackColor
:You have to change the parent's
BackColor
using: