formclosing Questions

7

Solved

I'm having a problem where I cannot await an asynchronous function inside of the FormClosing event which will determine whether the form close should continue. I have created a simple example that ...
Ammamaria asked 20/5, 2013 at 19:3

6

Solved

I'm attempting to detect, on the MDI parent, when my MDI child form closes, and react accordingly. The MDI parent shouldn't do anything until the MDI child closes. Here is my code, I'm unsure as to...
Fiver asked 6/12, 2010 at 15:49

8

Solved

Ok, so a Windows Forms class, WindowSettings, and the form has a "Cancel"-button. When the user clicks the button, the dialog DialogSettingsCancel will pop-up up and ask the user if he is sure he w...
Insoluble asked 17/1, 2013 at 14:51

2

Solved

I have a code snippet that I want to run when the app is closing. So, I used FormCLosing event. But now i wanna place a confirmation message for exiting. Like, if the user clicks the Exit(X) button...
Libratory asked 13/2, 2010 at 7:48

5

Solved

I am using an MDIParent Form. When I close its child, the object of the child disposes. Is there a way to set child visibility to false instead of disposing?
Crigger asked 19/5, 2011 at 14:46

4

Solved

How to make unclosed application in C#? I want to disable the 'X' button of the form and prevent the Windows Task Manager from closing it as well. I know that one way to prevent a form from closin...
Limiter asked 11/1, 2011 at 8:58

3

Solved

I have a single windows form application that is running in system tray icon.If the user press X button of the windows form a messagebox is displayed with Yes and No ( Yes ->close the form---No->ke...
Brundage asked 27/3, 2012 at 8:45

4

Solved

When using the FormClosing event, why does the code e.Cancel = true; work, but new CancelEventArgs().Cancel = true; does not work? private void Form1_FormClosing(object sender, FormClosingEventArg...
Magocsi asked 28/2, 2011 at 13:21

4

Solved

I am looking to prompt the user to save data when they close a form window in a winforms application. I can't figure out how to trigger the prompt to the user, should they click the red box at the ...
Monetary asked 31/1, 2011 at 13:1

1

Solved

I'm use this code for question before closing the application, but it is not working correctly. My code is as below. private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Dialog...
Mockheroic asked 14/9, 2012 at 2:52

3

Solved

How to get to the application closing event? I want to get application to save all unsaved operations or show the user a message "Are you sure about closing without saving all data?" something li...
Linhliniment asked 16/2, 2012 at 19:6

1

Solved

This is the code in question: private void FormAccounting_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.FormAccountingLocation = this.Location; Properties.Se...
Dredger asked 17/8, 2011 at 11:14

2

Solved

I found this: Button with an X at the upper-right corner of the form, how to catch this event @ C# Which says I should use the FormClosing event to find out when the window is closing because of ...
Drape asked 16/8, 2011 at 17:17
1

© 2022 - 2024 — McMap. All rights reserved.