I\'d like to do:
Window newWindow = new Window();
newWindow.Show();
while (true)
{
Console.Write(\"spin\");
}
I.e., I\'m doing an int
@SLaks This can be very useful if you are trying to launch a new window out of a console app. One option is to use showDialog(); But then its difficult to close it.
If you use Show() and then an Application.run() (this is the nuts and bolts of using the Application class to start a new message loop)
When you call Application.Exit() in your main console thread, then the app actually closes;
using showDialog(), you have to abort the thread, and then wait until the window gets some kind of input ie mouse over or focus. else it will hange on exit forever.