Control what red x does on window using wpf forms in c# -
i developing application in c# using wpf. control red x (close window) does. @ moment, press red x , closed current window , continues running rest of program. not want happen. instead when x pressed want whole program finish.
can done?
thanks help
you want event handling on window.closed event, or override window.onclosed method , put code shutdown program in there.
http://msdn.microsoft.com/en-us/library/system.windows.window.onclosed.aspx
Comments
Post a Comment