Environment.GetCommandLineArgs怎么使用才能在Winform里获得启动参数[STAThread]
static void Main(string[] args)
{
String[] arguments = Environment.GetCommandLineArgs();
if (arguments.Length==1)
{
Console.Write(arguments[0]);
}
else
Application.Run(new frmEditor());
}谢谢
static void Main(string[] args)
{
String[] arguments = Environment.GetCommandLineArgs();
if (arguments.Length==1)
{
Console.Write(arguments[0]);
}
else
Application.Run(new frmEditor());
}谢谢
解决方案 »
- 1个理论上简单但是网上找不到答案的问题
- 为什么奇数积为 :-373459037
- DataGridView控件 回车键设置
- 我的dotnet2.0怎么没有csc.exe文件?
- 用API中的FloodFill的填充问题.高手请帮忙.
- C#程序报错跟踪的方法
- windows application的主窗口(实例)怎样使得项目中的类方便访问到?
- c#下如何检测客户端有没有安装adobe公司的热reader等pdf浏览器,在线揭帖
- System.EventHandler 问题
- MSSQL中某一字段类型为tinyint,若取出该值,C#中对应什么类型
- 水晶报表做甘特图基本单位都是'天'怎么精确到秒?高手进 谢
- 关于Vs2005 C#开发 SmartPhone2003的问题
http://community.csdn.net/Expert/topic/4542/4542220.xml?temp=.3048822