I have two windows active on the screen, I would like the window on which we have to work to be active and the bottom one inactive. But after closing it, the bottom window takes control.
You would display the second form by calling ShowDialog, so that it is displayed as a modal dialogue. A modal dialogue prevents access to the caller and control is returned when the dialogue is closed and the ShowDialog method returns.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.