E
esafran
Hi,
I've have encountered a very strange behaviour under C#.
My application is registering for:
Microsoft.Win32.SystemEvents.DisplaySettingsChanged &
Microsoft.Win32.SystemEvents.UserPreferenceChanged
When I run my application as a Console Application (not as a service),
my application receives the events when I change the screen resolution
or change from Dual View to Horizontal Span or to Single View.
However, when I launch my application as a service, it does not receive
these events...
I clicked on the "Interact with desktop" in the service properties.
Anyone has any idea why it acts the way it does?
If it cannot be done that way? any idea how it can be done?
Best Regards,
Eyal Safran.
I've have encountered a very strange behaviour under C#.
My application is registering for:
Microsoft.Win32.SystemEvents.DisplaySettingsChanged &
Microsoft.Win32.SystemEvents.UserPreferenceChanged
When I run my application as a Console Application (not as a service),
my application receives the events when I change the screen resolution
or change from Dual View to Horizontal Span or to Single View.
However, when I launch my application as a service, it does not receive
these events...
I clicked on the "Interact with desktop" in the service properties.
Anyone has any idea why it acts the way it does?
If it cannot be done that way? any idea how it can be done?
Best Regards,
Eyal Safran.