首页 > 代码库 > winform 程序调用及参数调用

winform 程序调用及参数调用

    调用程序:  

      // 新轮廓 -> 调用轮廓扫描程序
        private void toolStripMenuItem9_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(@"E:\无锡福瑞达项目\TestApp\TestApp\bin\Release\TestApp.exe","measure");
        }

被调用程序:

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

 

        public Form1()        

   {            

    InitializeComponent();        

   }

        public Form1(string[] args)        

    {            

    InitializeComponent();            

     funcStr = args[0];            

     tbxDisp.Text = funcStr;        

    }

 

winform 程序调用及参数调用