well, I am following up in this newsgroup only since it seems to
offset people in the other one.
MyApplication_S tartupNextInsta nce seems to be the solution for running
several instances of the same application indeed, however I still have
the following problem:
I am running a script that looks pretty much like a console (no input/
button from user) using the graphic capabilities of forms. Currenty I
use MyApplication_S tartup and MyApplication_S tartupNextInsta nce to get
the setting (it's actually filepaths added to a list and then
processed one by one). And then the form is loaded and I use the
MainForm_Shown sub that fires up automatically to process the files.
The thing is that at the end of this process I want to exit the
application, except that a MyApplication_S tartupNextInsta nce has been
run in between. And I understand that the sub
MyApplication_S tartupNextInsta nce will wait until MainForm_Shown is
done to run. Which means I never get the filepaths added to the
application after it started running.
I could either not exit the application at the end of MainForm_Shown,
but then how should I make the application close automatically when no
more filepath is to be processed.
Alternatively, is there a way to "pause" MainForm_Shown and make the
other events/subs run, a bit like "DoEvents" in VB6?
thanks in advance
Charles
offset people in the other one.
MyApplication_S tartupNextInsta nce seems to be the solution for running
several instances of the same application indeed, however I still have
the following problem:
I am running a script that looks pretty much like a console (no input/
button from user) using the graphic capabilities of forms. Currenty I
use MyApplication_S tartup and MyApplication_S tartupNextInsta nce to get
the setting (it's actually filepaths added to a list and then
processed one by one). And then the form is loaded and I use the
MainForm_Shown sub that fires up automatically to process the files.
The thing is that at the end of this process I want to exit the
application, except that a MyApplication_S tartupNextInsta nce has been
run in between. And I understand that the sub
MyApplication_S tartupNextInsta nce will wait until MainForm_Shown is
done to run. Which means I never get the filepaths added to the
application after it started running.
I could either not exit the application at the end of MainForm_Shown,
but then how should I make the application close automatically when no
more filepath is to be processed.
Alternatively, is there a way to "pause" MainForm_Shown and make the
other events/subs run, a bit like "DoEvents" in VB6?
thanks in advance
Charles