Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question

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

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

    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.