110,538
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Windows.Forms;
using Microsoft.VisualBasic.ApplicationServices;
namespace Colorall
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
My.Application.Run(new string[] { "" });
}
}
class MyApplication : WindowsFormsApplicationBase
{
public MyApplication()
: base(AuthenticationMode.Windows)
{
EnableVisualStyles = true;
ShutdownStyle = ShutdownMode.AfterMainFormCloses;
}
protected override void OnCreateMainForm()
{
MainForm = new FrmMain();
}
protected override void OnCreateSplashScreen()
{
SplashScreen = new FrmSplashScreen();
}
}
static class My
{
private static MyApplication _app=new MyApplication();
public static MyApplication Application
{
get
{
return _app;
}
}
}
}