0

I have created a scheduled task on my system and I want it to show an error message in a Message Box.

I have tried below options but they're not working.

  • /Create /RU SYSTEM /SC /ST /TN /TR /IT
  • MessageBox.Show option with MessageBoxOptions.ServiceNotification
slhck
  • 228,104
  • MessageBoxes are shown, not THROWN. Also, what do you want to do!? – Daniel Mošmondor Aug 03 '11 at 17:15
  • Is MessageBox.Show option with MessageBoxOptions.ServiceNotification supposed to be your code? If so this is not valid C#. If not can you please post your code. Also, how is it "not working"? – Abe Miessler Aug 03 '11 at 17:16
  • Usually a task would just write to a system log somewhere. Popping up a MessageBox out of thin air from some task running in the background is going to confuse users... –  Aug 03 '11 at 17:19
  • The requirement is to show message box when the scheduled task is unable to establish connection with the SQL Server. –  Aug 03 '11 at 17:23
  • No idea why this was migrated here. – slhck Aug 03 '11 at 20:31

0 Answers0