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");
}
}
}