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
link|improve this question
MessageBoxes are shown, not THROWN. Also, what do you want to do!? – Daniel Mošmondor Aug 3 '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 3 '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... – bemused Aug 3 '11 at 17:19
The requirement is to show message box when the scheduled task is unable to establish connection with the SQL Server. – Molly Aug 3 '11 at 17:23
No idea why this was migrated here. – slhck Aug 3 '11 at 20:31
feedback

migrated from stackoverflow.com Aug 3 '11 at 18:38

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown