标签:nbsp text 代码 例题 next 写代码 orm oca win
2020-03-13 每日一例第6天
1.新建窗体windowform,修改text值;
2.找到mouseclick事件,填写代码;
Random rm = new Random();
Button bt = new Button() {
Text = "冬天按钮生成器",
ForeColor = Color.FromArgb(rm.Next(0, 255), rm.Next(0, 255), rm.Next(0, 255)),
AutoSize = true,
Location = e.Location};
Controls.Add(bt);
3.例题完成,最后效果如下:
标签:nbsp text 代码 例题 next 写代码 orm oca win
原文地址:https://www.cnblogs.com/ljs7490/p/12490047.html