S
Schemer
Hello,
I have a C# test app that I want to terminate after it has executed the
functions being tested.
Where is the best place to do this, and how?
static void Main()
{
Application.Run(new Form1());
}
Once the Form1 constructor returns, the app is running in the message loop.
Adding Application.Exit() to the constructor doesn't seem to work, either.
Is there a way to send a message like WM_QUIT to the app, from the form's
constructor?
TIA.
I have a C# test app that I want to terminate after it has executed the
functions being tested.
Where is the best place to do this, and how?
static void Main()
{
Application.Run(new Form1());
}
Once the Form1 constructor returns, the app is running in the message loop.
Adding Application.Exit() to the constructor doesn't seem to work, either.
Is there a way to send a message like WM_QUIT to the app, from the form's
constructor?
TIA.