ljs7490

2020-03-11 每日一例第4天

1.添加按钮1-6,并修改相应的text值;

 

 2.窗体Load事件加载代码;

private void Form1_Load(object sender, EventArgs e)
{
//前景色为红色
button1.ForeColor = Color.Red;
//按钮属性
button2.FlatStyle = FlatStyle.Standard;
//背景色为蓝色
button3.BackColor = Color.Blue;
//按钮属性
button4.FlatStyle = FlatStyle.Popup;
//字体为黑色15
button5.Font = new Font("黑体",15);

button6.FlatStyle = FlatStyle.Flat;
}

3.例题完成,最后效果如下:

 

分类:

技术点:

相关文章:

  • 2021-10-26
  • 2021-09-16
  • 2021-12-17
  • 2021-10-07
  • 2021-09-02
  • 2021-08-02
  • 2022-02-07
猜你喜欢
  • 2021-12-04
  • 2021-12-14
  • 2021-12-04
  • 2021-09-28
  • 2021-11-06
  • 2021-03-30
  • 2021-05-28
相关资源
相似解决方案