I am new to VB.NET. I want to display a simple message on the screen. i have the following code:
Dim msg As String = "You have to fill in all the information provided"
Dim title As String = "Message"
msg = MsgBox(msg, MsgBoxStyle.Critical, title)
and this is the error I get when I try to execute this code.
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.