📌  相关文章
📜  如何在 C# 代码示例中为方法发送按钮名称

📅  最后修改于: 2022-03-11 14:49:19.439000             🧑  作者: Mango

代码示例1
void button_Click(Object sender,  EventArgs e)
{
    var button = sender as Button;
    if(button != null)
    {
        button.Text = "X";
        button.ForeColor = System.Drawing.Color.Red;
    }

}