Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I quit an exe - Easy Question

Posted on 2001-06-18
4
Medium Priority
?
142 Views
Last Modified: 2010-05-02
This is an easy one. I have an small vb exe, and when the I click the close box the application is closed but still running in the background. What command can I issue to completely quit the applications either from the close box or a quit button.
0
Comment
Question by:kingkev
  • 2
4 Comments
 
LVL 5

Expert Comment

by:gbaren
ID: 6203187
Use the End statement
0
 
LVL 2

Accepted Solution

by:
nahumd earned 40 total points
ID: 6203191
Dim frm As Form
For Each frm In Forms
    Unload frm
Next


0
 
LVL 2

Expert Comment

by:nahumd
ID: 6203195
unloading the forms explicity is more recommended and more "clean"
0
 

Author Comment

by:kingkev
ID: 6203261
Thanks. That is what I needed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question