Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Windows Close button

Posted on 2003-03-02
2
Medium Priority
?
141 Views
Last Modified: 2010-05-01
Ok Here's my problem: I have a form that asks the user if he wants to save his work before exiting if he click exit. But if he clicks the windows close button, nothing will show up. Anyone can tell me where can I put my code so that when user clicks this button the same will be executed?
Thank you everyone!
0
Comment
Question by:figjus
2 Comments
 

Accepted Solution

by:
dlwright021299 earned 100 total points
ID: 8051525
You will have to place the code in the "form_unload" procedure.
0
 

Author Comment

by:figjus
ID: 8051551
Right... dumb me! Worked fine thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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
Course of the Month11 days, 6 hours left to enroll

571 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