program.cs

来自「中文名:Windows Forms 程序设计 英文名:Windows Form」· CS 代码 · 共 25 行

CS
25
字号
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;

namespace MDIClient {
  static class Program {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main(string[] args) {
      Application.EnableVisualStyles();
      
      MdiParentForm form = new MdiParentForm();
      
      // Load main form, taking command line into account
      if( args.Length == 1 ) {
        form.OpenDocument(Path.GetFullPath(args[0]));
      }

      Application.Run(form);      
    }
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?