NeuralJack
Centurion
- Joined
- Jul 28, 2005
- Messages
- 138
I realize the GUI is meant to be kept working all on the same thread. But, in this project I'd really like it if a new permanent form would show after another thread tells it to do so - and then that non-GUI thread expires.
The easy way around this would be to actually have a Hidden form up constantly in the program, and invoke the Visible property on it when it's needed. But is this a good and common practice?
So far, all I can do is create a form that disappears when the thread that created it expires, which makes sense because the form must not be attached properly to the GUI thread. I do use Invoke to Show the form, but that wont make a difference because It's not actually Invoking the GUI thread, but it's invoking the thread it was created on.. the non-GUI thread.
The easy way around this would be to actually have a Hidden form up constantly in the program, and invoke the Visible property on it when it's needed. But is this a good and common practice?
So far, all I can do is create a form that disappears when the thread that created it expires, which makes sense because the form must not be attached properly to the GUI thread. I do use Invoke to Show the form, but that wont make a difference because It's not actually Invoking the GUI thread, but it's invoking the thread it was created on.. the non-GUI thread.