Program:

static class Program
    {

     /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length == 0)
                Application.Run(new Form1());
            else
                Application.Run(new Form1(args));
        }
    }

Form1:

   string[] args = null;
        public Form1()
        {
            InitializeComponent();
        }
        public Form1(string[] args)
        {
            InitializeComponent();
            this.args = args;
        }

启动方式:

 Process.Start("a.exe", richTextBox1.Text);

 

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2021-11-20
  • 2021-10-05
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2018-03-15
  • 2021-06-29
  • 2022-12-23
  • 2021-04-06
相关资源
相似解决方案