JavaScript
- 15 ответов
- 0 вопросов
15
Вклад в тег
public void clickHandler(object sender, System.EventArgs e) {...}
button1.Click += new EventHandler(clickHandler);
button2.Click += new EventHandler(clickHandler);
button3.Click += new EventHandler(clickHandler);
foreach (Control ctrl in myGroupBox.Controls)
{
ctrl.Click += new EventHandler(clickHandler);
}