Women in Technology

Hear us Roar



Article:
  Top Ten Gotchas in Upgrading to .NET Framework 1.1
Subject:   ShowDialog changes - dialog result of cancel closes form
Date:   2003-06-09 11:47:46
From:   anonymous2
The default behavior under 1.0 for a showdialog form when closed by the X button was undefined. I set a default of cancel during the form load just in case.


Now the behavior is such that setting the dialog result actually causes the form to close, and closing the form by the X button sets the property to cancel. This is much better but until I removed the "preset" in the form load my dialog was never showing up in 1.1!