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

我已经在Visual Studio 2008 SP1中安装了Visual Basic Power Pack 3。
我想在C#WinForm中更改RectangleShape的背景​​颜色!
我将FillColor属性和BackColor属性更改为Black,但是什么也没有发生,并且RectangleShape的背景​​颜色没有改变。

如何更改RectangleShape的背景​​颜色?

参考方案

您是否将FillStyle设置为Solid?

LeetCode题解342.power-of-four

题目地址 https://leetcode.com/problems/power-of-four/description/ 题目描述 Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example 1: Input: 16 Out…

Visual Studio,ASP.Net(.Net Framework),并在项目中包含NuGet安装的软件包 - javascript

我在Visual Studio 2017中有一个主要由JavaScript组成的ASP.Net(.Net Framework)MVC Web应用程序。我已经使用NuGet安装了一个软件包(特别是marker-animate-unobtrusive软件包。)文档继续说我应该在我的HTML页面中包含JavaScript,但是在仔细检查了NuGet的内容后,我不确…

java.net.URI.create异常 - java

java.net.URI.create("http://adserver.adtech.de/adlink|3.0") 抛出java.net.URISyntaxException: Illegal character in path at index 32: http://adserver.adtech.de/adlink|3.0 虽然n…

在ASP.NET WebForms中在服务器端初始化bootsrap datatimepicker - javascript

我有这个HTML<div class='datepicker input-group date' id='datetimepickerStart'> <input type='text' class="form-control" /> <span c…

使asp.net Webforms母版页上的js代码中的路径(目录)可以处理根目录中不同级别的页面 - javascript

我在母版页中正在执行以下操作: <asp:Image data-toggle="popover" data-placement="bottom" onmouseover="this.src='../Content/Images/icon-hover.png'" onmous…