A
Andreas
Hi!
I have two forms, one opening the other. The opener disables itself
when it opens the other window, and the other window is suppose to
enable the first window again when closed. I tried this code, but I
get the error that "'object' does not contain a definition for
'DoEnable'". I'm quite a rookie in C#, so hopefully there is a quick
way to fix this...
FORM1:
private void buttonNew_Click(object sender, System.EventArgs e)
{
this.Enabled = false;
NewCDForm myNewCDForm = new NewCDForm(this);
myNewCDForm.Show();
}
public void DoEnable()
{
this.Enabled = true;
}
FORM 2:
private void NewCDForm_Closed(object sender, System.EventArgs e)
{
myCaller.DoEnable();
}
best regards,
Andreas
I have two forms, one opening the other. The opener disables itself
when it opens the other window, and the other window is suppose to
enable the first window again when closed. I tried this code, but I
get the error that "'object' does not contain a definition for
'DoEnable'". I'm quite a rookie in C#, so hopefully there is a quick
way to fix this...
FORM1:
private void buttonNew_Click(object sender, System.EventArgs e)
{
this.Enabled = false;
NewCDForm myNewCDForm = new NewCDForm(this);
myNewCDForm.Show();
}
public void DoEnable()
{
this.Enabled = true;
}
FORM 2:
private void NewCDForm_Closed(object sender, System.EventArgs e)
{
myCaller.DoEnable();
}
best regards,
Andreas