J
Jennyfer J Barco
Hello I need in my VB code behind to ask a question and do some action is
the user selects Yes or No bottom. I have
mystr = System.Windows.Forms.MessageBox.Show("Are you sure to delete the
records?", "WDS", Windows.Forms.MessageBoxButtons.YesNo)
If mystr = "1" Then
'delete the records
else
'no action
end if
But I get the following error:
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.
How can I fix this?
Thanks in advance
--
Jennyferd J. Barco
Programming Manager
Wireless Data Systems, Inc.
20423 State Road 7, F6 #6182
Boca Raton, FL 33498
(561) 488-5540 office
(561) 271-3925 mobile
(561) 451-9072 fax
(e-mail address removed)
www.wdsinc.com
the user selects Yes or No bottom. I have
mystr = System.Windows.Forms.MessageBox.Show("Are you sure to delete the
records?", "WDS", Windows.Forms.MessageBoxButtons.YesNo)
If mystr = "1" Then
'delete the records
else
'no action
end if
But I get the following error:
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.
How can I fix this?
Thanks in advance
--
Jennyferd J. Barco
Programming Manager
Wireless Data Systems, Inc.
20423 State Road 7, F6 #6182
Boca Raton, FL 33498
(561) 488-5540 office
(561) 271-3925 mobile
(561) 451-9072 fax
(e-mail address removed)
www.wdsinc.com