I have a static WindowController where I can do the following :
When application starts it will Open LoginForm with WindowsController. This is done by instanciate the form, binding it to a SuccessfulLogin event and then run Show(). Everything works grate so far.
When hitting the login button(in LoginForm) a separate Thread will be created with ThreadPool.QueueUserWorkItem.
This Thread will validate the form(with begin invoke), send the login information and if success then trigger the SuccessfulLogin event and finaly close the login(all this from within the LoginForm).
When the WindowsController get the SuccessfulLogin event it will run this simple code :
Form form = new
This will open a empty form but it will frezze, it is not even possible to move the window? If we change the code to form.ShowDialog() then it will show properly but we do not want it to be a dialog.
I supose that this could have something to do with the threading and maby also that the WindowController is static.
View Complete Post