peopleperson88
Technical User
I have created a VB project that exports data into a batch file then executes that batch file.
The program is structured so that uses select the application to install (check boxes or radio buttons), then click the button to install it. Those check boxes or radio buttons have the install path and sytax to the program. However, if a user were to click the button with nothing selected they will receive an error message that reads;
"An unhanded expection of type 'System ComponentModel Win32Exception' occured in system.dll.
Additional Information: %1 is not a valid win32 application"
What I want to happen is a message box to popup and tell the user they must select an application to install. How can I do that?
I've tried this which doesn't seem to work. It pops up for 1 sec then disappears. Which doesn't allow the user to click ok.
What am I missing?
On Error GoTo Go_Error
<code>
<code>
Go_Error:
MsgBox("You must select an application to install",MsgBoxStyle.OKOnly,"Error"
Resume Next
End Sub
The program is structured so that uses select the application to install (check boxes or radio buttons), then click the button to install it. Those check boxes or radio buttons have the install path and sytax to the program. However, if a user were to click the button with nothing selected they will receive an error message that reads;
"An unhanded expection of type 'System ComponentModel Win32Exception' occured in system.dll.
Additional Information: %1 is not a valid win32 application"
What I want to happen is a message box to popup and tell the user they must select an application to install. How can I do that?
I've tried this which doesn't seem to work. It pops up for 1 sec then disappears. Which doesn't allow the user to click ok.
What am I missing?
On Error GoTo Go_Error
<code>
<code>
Go_Error:
MsgBox("You must select an application to install",MsgBoxStyle.OKOnly,"Error"
Resume Next
End Sub