Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when executing nothing

Status
Not open for further replies.

peopleperson88

Technical User
Aug 8, 2002
46
US
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(&quot;You must select an application to install&quot;,MsgBoxStyle.OKOnly,&quot;Error&quot;)
Resume Next
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top