private void button1_Click(object sender, EventArgs e) { homeForm frm = new homeForm(); this.Hide(); frm.ShowDialog(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { try { asyncSource.Stop(); timer1.Stop(); } catch { } homeForm frm = new homeForm(); this.Hide(); frm.ShowDialog(); this.Close(); }