|
-
Dec 23rd, 2003, 02:50 PM
#1
Thread Starter
Lively Member
project closes immediately
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???
-
Dec 23rd, 2003, 03:20 PM
#2
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.
-
Dec 23rd, 2003, 03:56 PM
#3
Thread Starter
Lively Member
ok, i don't understand any of this thread thing... do you know of a good place that explains it?
thanks for the help!
-
Dec 23rd, 2003, 04:10 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|