This is the problem. Where could be wrong?

Yes, there is simply nothing to describe in essence, but

private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; } 

Called when the window closes, should prevent closure.

  • More details, please. At least show the code (well, plus describe in more detail) - KryDos
  • Moved to the question. - alex91


1 answer 1

Does the method even work? Try a bit or put a MessageBox inside this method ...

  • Yes, there was a snag. Attention dissipated. Thank you very much :) - alex91