This is the code in question: private void FormAccounting_FormClosing(object sender, FormClosingEventArgs开发者_如何学运维 e)
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
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?
I have two forms named fr开发者_运维百科mRegistration & frmMain in my project in c#. I have set frmRegistration as my start form.
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
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.
I have two background threads and a thread to handle minimization running on my WinForms Application. When the program closes, I use this method.
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
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
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).