private void button2_Click(object sender, EventArgs e) { Paint f = new Paint(); this.Close(); f.Close(); }