G
Guest
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?
(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?