Form is hidden behind other forms when ShowModal is called

后端 未结 6 1252
攒了一身酷
攒了一身酷 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 22:57

    try it OnShowForm:

    PostMessage(Self.Handle, WM_USER_SET_FOCUS_AT_START, 0, 0);
    

提交回复
热议问题