G
Guest
I need create winForm application with this architecture
I have code
[STAThread]
static void Main()
{
Application.Run();
}
Now I need show Icon in tray bar and attach some "context menu strip"
to this icon. So when user select one menu item - for example with name
"settings"
I need show Settings window and after user change it and close window
I need get it on "tray bar thread" (my main thread) and keep wating some
other action from user.
So. I don't need main window for this app and I have some question here
1) The first question can I show icon in tray if I didn't create form?
2) How show notify icon without creating form?
3) as I see after main thread run this Application.Run()
this thread became frozen. So How I can continue work with it?
I have code
[STAThread]
static void Main()
{
Application.Run();
}
Now I need show Icon in tray bar and attach some "context menu strip"
to this icon. So when user select one menu item - for example with name
"settings"
I need show Settings window and after user change it and close window
I need get it on "tray bar thread" (my main thread) and keep wating some
other action from user.
So. I don't need main window for this app and I have some question here
1) The first question can I show icon in tray if I didn't create form?
2) How show notify icon without creating form?
3) as I see after main thread run this Application.Run()
this thread became frozen. So How I can continue work with it?