C# Application.Run without Form

后端 未结 4 1724
忘掉有多难
忘掉有多难 2020-12-06 11:06

Is it possible to call Application.Run, but to not pass a form parameter, or is there an alternative if there’s no form to call?

The Run method doesn’t seem to have

4条回答
  •  渐次进展
    2020-12-06 11:18

    The Run method doesn’t seem to have any overloads that don’t accept a form.

    Uh... http://msdn.microsoft.com/en-us/library/ms157900.aspx

    Application.Run Method

    Begins running a standard application message loop on the current thread, without a form.

    public static void Run()

提交回复
热议问题