Results 1 to 4 of 4

Thread: project closes immediately

  1. #1

    Thread Starter
    Lively Member spdracr's Avatar
    Join Date
    Oct 2003
    Location
    Kansas
    Posts
    115

    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???

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3

    Thread Starter
    Lively Member spdracr's Avatar
    Join Date
    Oct 2003
    Location
    Kansas
    Posts
    115
    ok, i don't understand any of this thread thing... do you know of a good place that explains it?

    thanks for the help!

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width