J
Julie
My application has a couple of modal forms. The first gets constructed
in Main(), followed by an Application.Run(_form);
Traditionally I have had a "Start" button on that form which when
pressed would execute start(), which would take the values in the form
and start a new thread which would construct the second form.
Now I would like to include an optional command line argument which
would execute start() without the user needing to press the "Start"
button.
So, I added my start() function as a new thread that gets launched
from my Load callback for my first form. However, when I run in Debug
mode, my first form doesn't end up getting displayed at all for some
reason. Is it a bad idea to launch a new thread from the Load
callback? If I run by "Start without Debugging", the first form comes
up fine.
Any ideas? Thanks!
in Main(), followed by an Application.Run(_form);
Traditionally I have had a "Start" button on that form which when
pressed would execute start(), which would take the values in the form
and start a new thread which would construct the second form.
Now I would like to include an optional command line argument which
would execute start() without the user needing to press the "Start"
button.
So, I added my start() function as a new thread that gets launched
from my Load callback for my first form. However, when I run in Debug
mode, my first form doesn't end up getting displayed at all for some
reason. Is it a bad idea to launch a new thread from the Load
callback? If I run by "Start without Debugging", the first form comes
up fine.
Any ideas? Thanks!