As far as I've understood it, windows services doesn't have a GUI at all.
I've had the same ideas as you have and in my search, I came across this
article describing how you can have an icon in the system tray (next to the
clock) as your main user interface for a win-forms application.
Check it out and see if it's anything you can use. (The example is in
VB.NET, but is easily converted into C#)
http://www.devcity.net/net/article.a...vicecontroller
"Alexander Feygin" <Al*************@discussions.microsoft.com> skrev i
meddelandet news:46**********************************@microsof t.com...
I am monitoring certain events with a windows service
(derived from System.ServiceProcess.ServiceBase).
When a significant event comes up, I'd like to notify
the user with a pop-up dialog box or window.
In my event handler, I create a new thread, inside
which, I have:
MyForm frm = new MyForm();
System.Windows.Forms.Application.Run( frm );
I am able to step into the form initialization and load code,
but I never see the form on the screen. I also don't get
any errors.
What am I doing wrong?