Torna al Thread

private void Form1_Load(object sender, EventArgs e) { string[] args = Environment.GetCommandLineArgs(); if (args.Length > 1) { if (Array.IndexOf(args, "/a") != -1) // <= il "/a" sarebbe il parametro che avevo provato a impostare { MessageBox.Show("OK!!!!"); } else { MessageBox.Show("ERRORE"); } } }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5