How to show form in front in C#

后端 未结 11 1973
长发绾君心
长发绾君心 2020-12-06 09:35

Folks,

Please does anyone know how to show a Form from an otherwise invisible application, and have it get the focus (i.e. appear on top of other windows)?

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 10:07

    1. You said that it works fine when you use Application.Run. Why don't you want to use Application.Run, then?
    2. Have you tried calling BringToFront() from OnLoad or OnShown?

提交回复
热议问题