C# winforms startup (Splash) form not hiding

后端 未结 4 1112
鱼传尺愫
鱼传尺愫 2020-12-03 00:30

I have a winforms application in which I am using 2 Forms to display all the necessary controls. The first Form is a splash screen in which it tells the user that it it load

4条回答
  •  暖寄归人
    2020-12-03 00:33

    This is crucial to prevent your splash screen from stealing your focus and pushing your main form to the background after it closes:

    protected override bool ShowWithoutActivation {
        get { return true; }
    }
    

    Add this to you splash form class.

提交回复
热议问题