Top "Formclosing" questions

Form.

How to close form

Ok, so a Windows Forms class, WindowSettings, and the form has a "Cancel"-button. When the user clicks the button, …

c# winforms button formclosing
Application.Exit() and FormClosing event in Vb.net

I have a single windows form application that is running in system tray icon.If the user press X button …

vb.net formclosing
"e.Cancel " in formclosing Event

When using the FormClosing event, why does the code e.Cancel = true; work, but new CancelEventArgs().Cancel = true; does not …

c# .net events formclosing
VB.NET: Abort FormClosing()

I have a code snippet that I want to run when the app is closing. So, I used FormCLosing event. …

vb.net formclosing
MessageBox on Form Closing

I'm use this code for question before closing the application, but it is not working correctly. My code is as …

c# formclosing
How do I prevent a form object from disposing on close?

I am using an MDIParent Form. When I close its child, the object of the child disposes. Is there a …

c# winforms dispose formclosing
How can I prevent a user from closing my C# application?

How to make unclosed application in C#? I want to disable the 'X' button of the form and prevent the …

c# .net winforms formclosing
Get the application closing event

How to get to the application closing event? I want to get application to save all unsaved operations or show …

java swing netbeans formclosing jsr296
vb. net wait for 2nd form to close before continuing

Is there a way in vb.net to pause a function\ event and wait till another form has closed to …

vb.net wait formclosing
Window close events in a winforms application

I am looking to prompt the user to save data when they close a form window in a winforms application. …

.net vb.net winforms formclosing