Menu

#5 FormClosing event doesn\'t cancel when e.Cancel is true

closed
nobody
None
5
2007-11-26
2007-04-26
Anonymous
No

Using the sample application set the e.Cancel property to true in the frmDoc class. The window will still close even if it is canceled.

dan

Discussion

  • danholmes

    danholmes - 2007-04-26

    Logged In: YES
    user_id=1700543
    Originator: NO

    i have traced it to lines 1785 to 1799 in DockContainer.cs. The FormClosing event should fire here and the Cancel property should be checked before ReleaseWindow(...) and Form.IsVisible is set to false.

     
  • Uwe Mayer

    Uwe Mayer - 2007-11-26
    • summary: FormClosing event doesn't cancel when e.Cancel is true --> FormClosing event doesn\'t cancel when e.Cancel is true
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB