John Baird

John Baird

  • NA
  • 1
  • 0

Form properties do not take effect from another form

Dec 31 2008 3:29 AM
Hi,

I have a C# program with 2 forms:
* When form 2 shows, 2 timers are disabled and the lbl.text functions are changed on form 1
* When form 2 is hidden, these functions should be changed back.
* I have written a function within form 1 to change it back, the code runs through the function but the changes are not made

PLEASE HELP

Form 2 Code when hiding:

            this.Hide();
            WindowsApplication1.frmQ1 mf = new WindowsApplication1.frmQ1();
            mf.load_Settings();
            mf.restore();

restore() code:

public void restore()
        {
            timer.Enabled = true;
            menuItem3.Enabled = false;
            menuItem7.Enabled = true;
            timer1.Enabled = true;
            statusBar1.Text = "Ready";
            lblLoad.Text = "Waiting for update";
        }

The changes in restore() function do not occur

Best Regards

JJ Baird

Answers (2)