日期:2014-05-17 浏览次数:20866 次
public static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new Form1(args));
}
public Form1(string[] args)
{
initializeComponent();
......
}
private void toolStripMenuItem39_Click(object sender, EventArgs e)
{
new DocumentProcessing.Form1(new string[]{"1","2","3"}).ShowDialog();
}
public static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.DoEvents();
//Application.Run(new Form1(args));
Application.Run(new frmMain(args));
不可以吗?
然后你的构造函数这么写
frmMain()
{
initializeComponent();
}
frmMain(object args)
:this()
{
}
}
public string[] aaa={};
private void toolStripMenuItem39_Click(object sender, EventArgs e)
{
new DocumentProcessing.Form1(aaa).ShowDialog();
}