473,378 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Running code when access shut down with cross

My application runs some temporary file clean up code as an onClick event
when users click the exit button. My problem is that some users don't exit
properly and simply click the cross on the top right corner of the window it
is running in.

Can I run the code somehow when that happens? If so, how?

TIA
dixie
Jun 15 '06 #1
5 2014
"Dixie" <di***@dogmail.com> wrote in
news:12*************@corp.supernews.com:
My application runs some temporary file clean up code as an
onClick event when users click the exit button. My problem is
that some users don't exit properly and simply click the cross
on the top right corner of the window it is running in.

Can I run the code somehow when that happens? If so, how?

TIA
dixie

move the code from the On Click event of the button to the on Close
event of the form containing that button.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 15 '06 #2
Does this mean that Access automatically closes forms before it exits?

It is quite possible that the particular form would have its visible
attribute set at false, does that matter?

dixie

"Bob Quintal" <rq******@sPAmpatico.ca> wrote in message
news:Xn**********************@66.150.105.47...
"Dixie" <di***@dogmail.com> wrote in
news:12*************@corp.supernews.com:
My application runs some temporary file clean up code as an
onClick event when users click the exit button. My problem is
that some users don't exit properly and simply click the cross
on the top right corner of the window it is running in.

Can I run the code somehow when that happens? If so, how?

TIA
dixie

move the code from the On Click event of the button to the on Close
event of the form containing that button.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 16 '06 #3
Access closes all forms before it closes, visible or not.
Jun 16 '06 #4
Great, then that's perfect, as this form is always open, but often
invisible. Problem solved. Thankyou both.

dixie

<w_a_n_n_a_l_l_ -@-_s_b_c_g_l_o_b_a_l._n_e_t> wrote in message
news:kc*******************@newssvr27.news.prodigy. net...
Access closes all forms before it closes, visible or not.

Jun 16 '06 #5
"Dixie" <di***@dogmail.com> wrote in
news:12*************@corp.supernews.com:
Does this mean that Access automatically closes forms before
it exits?
Yes!
It is quite possible that the particular form would have its
visible attribute set at false, does that matter?
Not in the least. I often use a "Welcome" form as a splash
screen, and hide it after 5 seconds. It contains clean-up code
as well as the set-up code.

dixie

"Bob Quintal" <rq******@sPAmpatico.ca> wrote in message
news:Xn**********************@66.150.105.47...
"Dixie" <di***@dogmail.com> wrote in
news:12*************@corp.supernews.com:
My application runs some temporary file clean up code as an
onClick event when users click the exit button. My problem
is that some users don't exit properly and simply click the
cross on the top right corner of the window it is running
in.

Can I run the code somehow when that happens? If so, how?

TIA
dixie

move the code from the On Click event of the button to the on
Close event of the form containing that button.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jonathan Heath | last post by:
Hi all, I have created an ASP script that enters data into an Access Database. My problem is that I'd like this script to run when the computer is shutdown or the user logs off. I think...
1
by: Rocky A | last post by:
I need to open an excel workbook and import info to my access program. That isn't the problem, I've got the code down for doing what I want to do. I'm declaring the variable and setting it like...
0
by: Mr Bounce | last post by:
Hi, Probably well worn ground, this, but im stumped and need some help, if you could: I'm trying to write some code for a windows service that needs to run in the background polling a server...
3
by: kuldeep | last post by:
Hi all, I have a application developed in C# .net. The problem I face is I am unable to shutdown my machine when the exe is running. Windows is unable to close this exe an shut down. Can anyone...
4
by: andersboth | last post by:
I want to run some code when my Windows Form Application is being shut down. I want to run this code when the Application is being shut down in the following situation: 1. The App is being...
1
by: | last post by:
Hello, i have a question, i have made an .exe file in vb.net and this exe file is running the whole time, while you work with the computer. but then when i want to shut down the computer, the...
3
by: Rune Jacobsen | last post by:
Hey all, Maybe someone knows this problem; I have a C# WinForms app that every now and then has a new version that I deploy to my users using an installation script written with the NSIS...
5
by: Simon Hart | last post by:
Does anyone know the standard code access permission to be able to manipulate a process using the Process class? Thanks Simon.
3
by: Jeremy C B Nicoll | last post by:
Is there a cross-platform of determining what other processes (or in Windows terms, other applications) are running? Is it possible in a cross-platform way to ask some other application to shut...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.