V
VM
Hi,
In my Win app, I'm using delegates because the process that'll be running is
time-consuming and it requires parameters. The only problem I'm having is
that the lines following the BeginInvoke (lines that depend on the outcome
of the method) are being executed while the lengthy process is being
executed. Would it be possible to "tell" those following lines of code not
to execute while the BeginInvoke method is running and run after the
BeginInvoke has finished executing ?
loadAuditBrowseHandler thisLoadAuditBrowseHandler = new
loadAuditBrowseHandler(this.Browse);
thisLoadAuditBrowseHandler.BeginInvoke(null,null);
// many more lines of code that cannot be executed while the BeginInvoke is
running
In my Win app, I'm using delegates because the process that'll be running is
time-consuming and it requires parameters. The only problem I'm having is
that the lines following the BeginInvoke (lines that depend on the outcome
of the method) are being executed while the lengthy process is being
executed. Would it be possible to "tell" those following lines of code not
to execute while the BeginInvoke method is running and run after the
BeginInvoke has finished executing ?
loadAuditBrowseHandler thisLoadAuditBrowseHandler = new
loadAuditBrowseHandler(this.Browse);
thisLoadAuditBrowseHandler.BeginInvoke(null,null);
// many more lines of code that cannot be executed while the BeginInvoke is
running