Invoke
I defined the following delegate:
public delegate void FormOpenFunction();
Then I call the following function:
Form tmpForm;
public void OpenForm(Form form)
{
tmpForm = form;
FormOpenFunction formOpenFunction=new FormOpenFunction(FormOpener);
Invoke(formOpenFunction);
}
public void FormOpener()
{
tmpForm.ShowDialog();
}
When I want to compile it, there appears an System.ArgumentException in the line "Invoke(...)".
What is wrong?

