Show Notification
-
Hello, How to show Message/Notification from windows service. When i use MsgBox("Hi") it is throwing below error -> Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. Please Help. Thanks, Sh
-
Hello, How to show Message/Notification from windows service. When i use MsgBox("Hi") it is throwing below error -> Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. Please Help. Thanks, Sh
Well the diagnostic information seems to have given you the answer. Showing a MessageBox, or any kind of Modal Dialog from a service is a bad idea as it means the service is stalled until someone answers the message. Most services are designed to post their messages to some form of log file unless they encounter a catastrophic error.
-
Well the diagnostic information seems to have given you the answer. Showing a MessageBox, or any kind of Modal Dialog from a service is a bad idea as it means the service is stalled until someone answers the message. Most services are designed to post their messages to some form of log file unless they encounter a catastrophic error.
-
Thanks Richard, I am developing custom MessageBox. When i call it from winservice it is thrwoing error. It says set servicenotification. Richard, How to set "ServiceNotification" propert of custom messagebox. Thanks
-
Thanks Richard, I am developing custom MessageBox. When i call it from winservice it is thrwoing error. It says set servicenotification. Richard, How to set "ServiceNotification" propert of custom messagebox. Thanks
Thanks Richard. But the article is for standerd message box. I have created my own message box (Form), for which i need to set either "ServiceNotification" or "DefaultDesktopOnly". I am not able to find, how to set those properties. Please help me. Thanks
-
Thanks Richard. But the article is for standerd message box. I have created my own message box (Form), for which i need to set either "ServiceNotification" or "DefaultDesktopOnly". I am not able to find, how to set those properties. Please help me. Thanks