private void button1_Click(object sender, EventArgs e) { BuyCode bc = new BuyCode(); bc.ShowDialog(Program.mainForm); }