dotnet/winforms

FormClosed event is raised twice for owned modal window when owner window is closed programatically

オープン

#2,451 opened on 2019/11/29

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C# (922 件のフォーク)batch import
:beetle: bughelp wanted

Repository metrics

Stars
 (4,100 個のスター)
PR merge metrics
 (PR metrics pending)

説明

See attached sources. I can reproduce this issue with .Net Core 3.0 and .Net Framework 4.7.2

The second call to OnFormClosed() seems to be a side effect of shutting down the modal message loop that was created to run the child window.

BugFormClosedRaisedTwice.zip

コントリビューターガイド