How to hide my SmartDevice application on startup?

前端 未结 2 411
天命终不由人
天命终不由人 2021-01-22 13:36

I made a SmartDevice application that runs on startup and I want it to be hidden at first launch.

I\'ve tried this.Hide(), this.Visible =

2条回答
  •  自闭症患者
    2021-01-22 13:51

    The CF automatically calls Show on the Form passed to Application.Run. There is no avoiding that without avoiding the call to Application.Run.

    The SDF has an Application2.Run that takes a parameter to tell it to not show the form.

    You could do the same by creating your own message pump (though it's not a straightforward thing to do).

提交回复
热议问题