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