C# Force Form Focus

前端 未结 8 1960
不思量自难忘°
不思量自难忘° 2020-12-02 14:46

So, I did search google and SO prior to asking this question. Basically I have a DLL that has a form compiled into it. The form will be used to display information to the sc

8条回答
  •  佛祖请我去吃肉
    2020-12-02 15:16

    TopMost = true; .Activate() ?

    Either of those any good?

    Splitting it out into its own thread is a bit evil as it wont work properly if you don't call it with Application.Run and that will swallow up the thread. In the worst case scenario I guess you could separate it out into a different process and communicate via the disk or WCF.

提交回复
热议问题