Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in wpf this event called Closing :
- public Window4()
- {
- InitializeComponent();
- this.Closing += new System.ComponentModel.CancelEventHandler(Window4_Closing);
- }
- void Window4_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- e.Cancel = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement