S
sbprasadrao
Guest
Due to some logic we call methodA using Delegate.BeginInvoke from Form.Load method.
Once methodA finishes we call AsyncOperation.PostOperationCompleted to close the Form;
However sometimes Form.Shown event runs after closing the form. I see Shown event is called as BeginInvoke(new MethodInvoker(CallShownEvent));
How to guarantee method called by delete.beginInvoke executes after Form.Shown event;
Note I cannot move call to methodA using Delegate.BeginInvoke from Form.Load method.
Please advice.
Thanks
Continue reading...
Once methodA finishes we call AsyncOperation.PostOperationCompleted to close the Form;
However sometimes Form.Shown event runs after closing the form. I see Shown event is called as BeginInvoke(new MethodInvoker(CallShownEvent));
How to guarantee method called by delete.beginInvoke executes after Form.Shown event;
Note I cannot move call to methodA using Delegate.BeginInvoke from Form.Load method.
Please advice.
Thanks
Continue reading...