When I run my application 2 different forms are loaded simultaneously,but one of them is shown.Now I want If one of these form is closed ,other form which is hidden should get closed also.Any Suggestion.
No Parent -Child relation between these forms.
When I run my application 2 different forms are loaded simultaneously,but one of them
Share
Assuming that the two forms are both in the same process, you can have the second hidden form handle the FormClosed event of the visible form and close it self when the Visible Form’s FormClosed event fires.