[Mono-dev] [PATCH] Form.Closing event for non modal dialog

Dominik Seichter domseichter at web.de
Fri Dec 29 12:31:43 EST 2006


Hello,

The latest mono svn trunk and previous releases of mono do not handle the 
Form.Closing event correctly. 

If a CancelEventHandler for the event is set, it is fired correctly. But if 
the CancelEventHandler sets the Cancel property on the CancelEventArg to 
true, the form is still closing. 

The Cancel property in the CancelEventHandler for the Form.Closing event in 
mono is ignored. 

The bug is fixed by the attached patch against the latest SVN trunk. The patch 
has to be applied to the file Form.cs in the directory 
mcs/class/Managed.Windows.Forms/System.Windows.Forms .

After applying the patch the behaviour is correct and the same as when using 
the Microsoft .NET CLR. 

Could someone with commit permission please put the patch into svn?

Thanks in adcance and best regards,
	Dom
-- 
**********************************************************************
Dominik Seichter - domseichter at web.de
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form_close_cancel_event.diff
Type: text/x-diff
Size: 404 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061229/e60c5951/attachment.bin 


More information about the Mono-devel-list mailing list