Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 frm2 = new Form2();

            //check if button1 clicked and then change the background
            if (frm2.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.BackgroundImage = frm2.GetBackImage();
            }
        }