简体   繁体   English

使用C#更改Visual Basic Power Pack 3中RectangleShape的背景​​颜色?

[英]Changing background color of RectangleShape in Visual Basic Power Pack 3 with C#?

I've installed Visual Basic Power Pack 3 in Visual Studio 2008 SP1. 我已经在Visual Studio 2008 SP1中安装了Visual Basic Power Pack 3。
I wanna change the background color of RectangleShape in a C# WinForm !!! 我想在C#WinForm中更改RectangleShape的背景​​颜色!
I changed FillColor property and BackColor property to Black but nothing happened and RectangleShape's background color didn't changed. 我将FillColor属性和BackColor属性更改为Black但是什么也没有发生,并且RectangleShape的背景​​颜色没有更改。

How can I change the background color of RectangleShape ? 如何更改RectangleShape的背景​​颜色?

您是否将FillStyle设置为Solid?

Change the BackStyle property from "Transparent" to "Opaque". 将BackStyle属性从“透明”更改为“不透明”。 Click around some more to see what effects the properties have, the designer support is pretty good. 单击更多以查看属性有什么影响,设计器支持非常好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM