How to have an invisible start up form?

前端 未结 7 2110
眼角桃花
眼角桃花 2020-12-17 16:43

I have an application that is a part of a solution of projects. In this project I would like for it to start up form to be invisible, but still have a notification icon in t

7条回答
  •  感动是毒
    2020-12-17 17:46

    Just to throw out a completely different approach, have you considered not using the overload of Application.Run() that takes (and automatically shows) a Form? If you use the one that passes in an ApplicationContext (or more tyoically, your own subclass of ApplicationContext) then you can choose what your behavior is. See here for more details:

    http://msdn.microsoft.com/en-us/library/ms157901

提交回复
热议问题