dotnet/winforms

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

Open

#2 451 ouverte le 29 nov. 2019

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)C# (922 forks)batch import
:beetle: bughelp wanted

Métriques du dépôt

Stars
 (4 100 stars)
Métriques de merge PR
 (Merge moyen 14j 22h) (56 PRs mergées en 30 j)

Description

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

Guide contributeur