Close completely a program


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Close completely a program

  1. #1
    Join Date
    Jul 2006
    Posts
    7

    Question Close completely a program

    I'm working in asimple program but when I try to close it, all the windows (forms) desappear and apparently the progrma closes, but the systray icon doen't desappear and when I run the program manager of windows my aplication appear like active.

    How do I assure that all the process end succesfully?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Try executing the following code before your program ends (e.g., in your main form's Form_Unload method):
    Code:
    Dim frm As Form
    For Each frm In Forms
        Unload frm
    Next
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Help! Simple Java Program.
    By SlickWilly440 in forum Java
    Replies: 2
    Last Post: 01-28-2006, 10:17 PM
  2. Help with a program
    By stormswimmer in forum Java
    Replies: 2
    Last Post: 01-02-2006, 04:17 PM
  3. Replies: 7
    Last Post: 08-04-2005, 08:28 PM
  4. Replies: 0
    Last Post: 07-15-2003, 01:13 AM
  5. NT priveleges from an ASP program
    By Matthew Solnit in forum authorevents.appleman
    Replies: 1
    Last Post: 04-11-2000, 05:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center