Controls1 210608 이벤트의 object sender, EventArgs e 매개 변수에 대해서 private void button1_Click(object sender, EventArgs e) { } e 는 이벤트에 대한 정보가 담겨 있는 객체이다. sender 는 이벤트가 일어나는 추체로 지금은 button 이다. private void button1_Click(object sender, EventArgs e) { Button aButton; aButton = sender as Button; aButton.Text = "지옥으로 키티 "; } 와 같이 직접적으로 버튼을 다룰 수 있다. CheckBox using System; using System.Collections.Generic; using System.Compon.. 2021. 6. 8. 이전 1 다음