1、

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

------------------------
public   Form1(string[]   args)
{
      使用args
}

2、

任何地方都可用string   []   strArgs=System.Environment.GetCommandLineArgs();

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2021-07-20
  • 2021-10-09
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-07-31
  • 2022-12-23
  • 2021-06-11
  • 2021-12-16
相关资源
相似解决方案