private void button2_Click(object sender, EventArgs e) { frmScheduleTask task = new frmScheduleTask(); task.ShowDialog(); }