Beep and Popup in an installed service

  • Thread starter Thread starter Onion_Dev
  • Start date Start date
O

Onion_Dev

Guest
Hi,

I have created a timer windows service that yields a sound notification every x seconds before showing a popup. That however, only works locally and when I install the service, thought the code doesn't error out, it does absolutely nothing. .


//sound notif
MessageBeep(0x0);
//display popup window
MessageBox.Show("Test", "Print Notification", System.Windows.Forms.MessageBoxButtons.YesNo,
System.Windows.Forms.MessageBoxIcon.Error,
System.Windows.Forms.MessageBoxDefaultButton.Button1,
System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly);



P.S.: Also tried `System.Windows.Forms.MessageBoxOptions.ServiceNotification`for the last param.
Any nudge in the right direction is appreciated.

Continue reading...
 
Back
Top