Comment puis-je créer une application sans fenêtre C # qui se trouve dans le magasin?
-
11-09-2019 - |
Question
Comme le dit la question, Comment créer une telle application? Comment puis-je faire et sans fenêtre fais résider dans la zone de notification (en bas à droite)?
Autres conseils
static class Program
{
[STAThread]
static void Main()
{
NotifyIcon icon = new NotifyIcon();
icon.Icon = System.Drawing.SystemIcons.Application;
icon.Click += delegate { MessageBox.Show("Bye!"); icon.Visible = false; Application.Exit(); };
icon.Visible = true;
Application.Run();
}
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow