How to make the startup form initially invisible or hidden

前端 未结 3 1037
半阙折子戏
半阙折子戏 2020-12-16 21:28

How to make the startup form initially invisible or hidden

I have a GUI project with 2 form and the forms have to be displayed separately. i.e. When form 1 is shown,

3条回答
  •  我在风中等你
    2020-12-16 22:28

    I'm guessing that what you're asking is how to make the form not appear in the task bar and only appear in the system tray, just like an IM or an anti virus?

    If so, just set the ShowInTaskbar property of the Form to false.

    As for making the initial form invisible, you'll have to use an ApplicationContext within Application.Run instead of the main form.

提交回复
热议问题