/// <summary> /// click event for timer button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnMyTimer_Click(object sender, EventArgs e) { //call form's constructor and assign variable MyTimerForm timer = new MyTimerForm(); //display timer form timer.ShowDialog(); }
private void btnMyTimer_Click(object sender, EventArgs e) { MyTimerForm timer = new MyTimerForm(); timer.Show(); }