Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. in wpf this event called Closing :
  2. public Window4()
  3. {
  4. InitializeComponent();
  5. this.Closing += new System.ComponentModel.CancelEventHandler(Window4_Closing);
  6. }
  7. void Window4_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  8. {
  9. e.Cancel = true;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement