how to wait for an event?
I have this problem with a Form :
In the main class a create a Form and then show it:
Global.f = new Formulario();
Application.Run(Global.f);
in my form i have an event, when you press a button i call a method called "llamadas" where i have several calls to some methods.
I can intercept those calls, so right after every execution i have this method:
public override object Action(object target, object[] parameters)
{
//what i want to do here is modified the form showing the parameters of the method //and wait for the button "continue", then return the control here and execute the /method.
return null; // execute the method
}
I can't use ShowDialog because it says the form is already visible.
I would appreciate your suggestions. Thanks a lot.