简体   繁体   中英

How prevent c# form losing focus inside MDI parent?

I have several forms which have the same MdiParent.

In particular two of them, let's call them formA and formB . formB is called (displayed) from formA .

When both are opened in the MDIParent, I would like to keep formB on top of formA all the time until formB is closed

I tried using Deactivated and Focus on formB but it is not doing what I want.

Can you help me do that ?

formB.ShowDialog()将帮助您每次都获得formB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM