I have the startup object of my project set to sub main, and in the routine it loads the main form so I can start working with the project. But the form closes immediately after opening.
Any ideas???
Printable View
I have the startup object of my project set to sub main, and in the routine it loads the main form so I can start working with the project. But the form closes immediately after opening.
Any ideas???
If you are calling the form with frm.Show then it will not hold the thread open for the form you must either use ShowDialog or Application.Run(frm) to keep the UI Thread open while the form is open.
ok, i don't understand any of this thread thing... do you know of a good place that explains it?
thanks for the help!
The help files, try searching for UI Thread or Application.Run. Although really you can trust me on this one and just use ShowDialog or Application.Run. Actually similiar questions have come up before on this forum so you might try searching for those words here too.