标签:winform inf new bsp tco class rgs form proc
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);
C# Winform程序之间如何传递和接收参数 Process
标签:winform inf new bsp tco class rgs form proc
原文地址:http://www.cnblogs.com/qc-id-01/p/7477788.html