小编Vex*_*rei的帖子

循环遍历C#中的标签

我有九个标签与名称"lbl101","lbl102"...

我想做这个:

for (int i = 0; i < 9; i++)
{
    sting name = "lbl10" + i;
    name.BackColor = Color.Red;
}
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

c# forms label winforms

1
推荐指数
1
解决办法
3975
查看次数

标签 统计

c# ×1

forms ×1

label ×1

winforms ×1