-
Cancel a closing window
Anyone knows how to cancel a closing window when a user closes it in the cross button in the caption bar.
I have an application and i want to get a confirmation before closing it.
When a user uses the cross button near the maximize and minimize button i want to get a message box with a cancel button to undo this close.
I tryed the closed event but the window still closes....
Any suggestions?
Thanks in advanced :)
-
In the OnClose(or something like that) event just put
sabes quem sou? :P
-
hehe ty, it works!!
Acho que sei quem és!!! Mas já n via esse nome à bues!!!
Tás a dominar c#!!!