Form is hidden behind other forms when ShowModal is called

后端 未结 6 1249
攒了一身酷
攒了一身酷 2020-12-04 22:34

My application is based on modal forms. Main form opens one form with ShowModal, this form opens another with ShowModal, so we have stacked modal forms. There is sometimes a

6条回答
  •  时光取名叫无心
    2020-12-04 23:03

    I have found that using the "Always On Top" flag on more than one form causes problems with the Z order. And you may also find the need for the BringWindowToTop function.

    When launching a message box using the built-in WinAPI (MessageBox), I have found that passing the calling window's handle is necessary in order to make sure that the the prompt appears on top all the time.

提交回复
热议问题