如通过object 使用button控件

//如通过object 使用button控件(利用object as button):

 public static void fun(object sender)
 {
       (sender as Button).BackColor = System.Drawing.Color.Green;            

  }

 

posted @ 2021-08-22 23:11  Cmale  阅读(100)  评论(0编辑  收藏  举报