【发布时间】:2020-04-02 12:33:41
【问题描述】:
我想在我的表单中将所有按钮的光标类型更改为“手”。但是代码不起作用。有人可以帮忙吗? ) 这是代码:
foreach (Control control in this.Controls)
{
if (control is Button)
{
control.Cursor = Cursors.Hand;
}
}
【问题讨论】:
-
这是 ASP.NET 吗?温窗体?赛马林?
Control和Button有哪些类型?
标签: c#