dotnet/winforms

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

Open

#2,451 建立於 2019年11月29日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C# (922 fork)batch import
:beetle: bughelp wanted

倉庫指標

Star
 (4,100 star)
PR 合併指標
 (平均合併 14天 22小時) (30 天內合併 56 個 PR)

描述

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

貢獻者指南