Questions tagged [application-close]
31 questions
1
vote
1 answer
How to manage the onClose of windows phone 8.1 application
I would like to manage the behavior of my application when it closes (and not when it is suspended), but I couldn't find any method to override.
In this application, a user can log in with his profile: when he is in the main page of the application…

Usr
- 2,628
- 10
- 51
- 91
1
vote
2 answers
Code to be run on program close and pc shutdown
I have a formless application that runs as a system tray application. Im struggling with it having to run code when the computer closes or when the application is closed.
This is what i have so far
class sysTrayIcon
{
public sysTrayIcon()
{
…

Daniel Jørgensen
- 1,183
- 2
- 19
- 42
1
vote
0 answers
Close outlook application
It is very possible that this question has been asked (many times) before but i can't find a solution.
I have a program that will send an email.
The code looks something like this:
Dim oApp As Interop.Outlook.Application = Nothing
While oApp Is…

gubbfett
- 2,157
- 6
- 32
- 54
1
vote
4 answers
C# application closing problem
I want my application such that, it will minimize to System Tray on clicking the close(X) button.
And it will only be closed by clicking a different button/menu on the main application window or clicking a system tray context menuItem.
I am able to…

user366312
- 16,949
- 65
- 235
- 452
0
votes
1 answer
Error when closing window (cocoa application)
this's a log which I get when close window in my application:
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] : kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
Nov 21 20:58:17 Mac-mini.local FirstGUIapp[3255] : kCGErrorFailure:…

Ilya Blokh
- 11,923
- 11
- 52
- 84
0
votes
0 answers
.NET : Closing the application gracefully on user logout
We have VB.NET windows application installed on our client's machine. Some of our client used third party softwares (like imprivata badge) to log user out. Is there any way to gracefully close our VB.NET windows application when user logs out by…

Hrushikesh Pande
- 56
- 1
- 5
0
votes
2 answers
How to detect when application is closed by a user in android?
I know that, unlike onCreate(), Application class does not have a onDestroy() method. But I wanted to know when my application is closed (or it is not visible on screen anymore). After all, whatsapp and many more similar chat applications can detect…

Sourav Kannantha B
- 2,860
- 1
- 11
- 35
0
votes
1 answer
How to Exit an application when my app consists of multiple activities?
How to exit application in android when I have multiple activities in that app?
I have tried finish() and System.exit(0), but none of them worked. What it does is just go to the previous activity.
Here is my code:
boolean…

Nabeel Ahmed
- 18
- 3
0
votes
0 answers
do nothing on close application javafx
how can I make sure that the window does not close when I click on the X?
stage.setOnCloseRequest((WindowEvent t) -> {
Alert alert = new Alert(AlertType.CONFIRMATION);
alert.setTitle("Attention");
alert.setContentText("Would you close…
0
votes
2 answers
How to minimize the application to system tray on close from ApplicationWindow object?
I am in process of compiling an open source backup application. I want the application not to be closed using X nor any key combination such as Alt+F4 in Windows. What I prefer would be minimizing the application to system tray in such cases.
I am…

Hasan Can Saral
- 2,950
- 5
- 43
- 78
0
votes
1 answer
How to invoke method before console program terminates itself
I would like to serialize some objects in console application just before program terminates itself(without adding this code simply in the end of main method)?
Is that possible to solve out?

Yoda
- 17,363
- 67
- 204
- 344
0
votes
1 answer
Execute function on console close c++
i'm working with dynamic memory allocation and i need to ensure the memory is cleared if a user manually closes the console window.
Is there a way i can call a function when the console window is manually closed?

Eduardo
- 6,900
- 17
- 77
- 121
0
votes
1 answer
Runtime exception issue with android app.
I've been given an assignment to parse XML data to a basic list view and then into a text view, the issue being however while editing code purposefully provided for the exercise my application stops once I have pressed the "login" button on the main…

Grubbery
- 31
- 2
0
votes
4 answers
android closing the application from any screen
Possible Duplicate:
Close application and launch home screen on Android
I have developed an application which consist of 23 screens or layout.. Each layout links with another one..
The process will go as a chain or tree.. How can i close my…

gowri
- 681
- 9
- 27
0
votes
4 answers
Confirm application closure when pressing back button
How can I make it so that pressing the back button does not close my application? I want to display a confirmation message.
Thank you.

Sebosin
- 167
- 6
- 16