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;        

    }

 

posted on 2014-12-09 22:00  xihong  阅读(572)  评论(0编辑  收藏  举报

导航