Bonjour,
J'aimerais ne pas afficher une alert :
Lorsque j'appelle la fonction suivante : ( j'ai testé pas mal de paramètres mais je n'arrive pas à ne pas la faire afficher)
Si vous avez des informations, n'hésitez pas à me partager.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = "shutdown.exe"; proc.StartInfo.Arguments = " -s -f -t "+time; proc.StartInfo.UseShellExecute = false; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.ErrorDialog = false; proc.Start(); proc.Close();
Il doit bien exister une propriété qui permet de ne pas afficher cette alerte !
Merci
Florian
Partager