formclosing
c# WinForms form still closes after setting e.Cancel = true in Form_FormClosing event
This is the code in question: private void FormAccounting_FormClosing(object sender, FormClosingEventArgs开发者_如何学运维 e)[详细]
2023-03-28 21:35 分类:问答Close form on messagebox answer trouble
I am trying to use this code to close a form on a specific answer of a messag开发者_JAVA百科e box. I keep receiving an error saying that neither Yes nor No belong to DialogResult::. I basically copied[详细]
2023-03-13 07:54 分类:问答C# closing another form problem, Close(); does not work
I have this code on form1 TimerMode f2 = new TimerMode(); f2.show(); now I\'m trying to use this code in some point in time, but nothing happens?[详细]
2023-03-06 16:37 分类:问答About form closing at runtime in C#
I have two forms named fr开发者_运维百科mRegistration & frmMain in my project in c#. I have set frmRegistration as my start form.[详细]
2023-03-02 23:22 分类:问答c# cancel application from closing if hidden form has unsaved changes
after searching google and stackoverflow I\'m unable to find an answer that helped me in my situation. I\'ve got an application with a start menu(form). when the user presses the X(close) of a (any) f[详细]
2023-02-13 16:48 分类:问答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开发者_Go百科 form and prevent the Windows Task Manager from closing it as well.[详细]
2023-02-04 02:05 分类:问答C# Adding code to FormClosing event disables X on MdiParent
I have two background threads and a thread to handle minimization running on my WinForms Application. When the program closes, I use this method.[详细]
2023-02-02 04:49 分类:问答C# MDI Parent detect when MDI Child is closing?
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[详细]
2023-01-28 21:59 分类:问答How to unhook event handlers in C#
I am working on a C# application that has multiple forms. When I open one of the forms I add an event listener like this: SomeClass.MotionCompleted += new EventHandler(HandlerMethod); . The MotionComp[详细]
2023-01-24 04:11 分类:问答How to prevent MDI main form closing from MDI Child
I have a MDI main form. On it I host a form, and I want it to show a message box before it closes (asking the user whether to save changes).[详细]
2022-12-29 14:21 分类:问答