110,545
社区成员
发帖
与我相关
我的任务
分享
public partial class UserControl1 : UserControl
{
//...
public event EventHandler TextChanged
{
add { this.textBox1.TextChanged += value; }
remove { this.textBox1.TextChanged -= value; }
}
public event EventHandler ButtonClicked
{
add { this.button1.Click += value; }
remove { this.button1.Click -= value; }
}
}