hello, i don't really understand my mistake. i want to make an "Run" button on my project, this is my code for so far:
now when he opens something that doesn't have to give an error, he gives the error i made with runerror. when he can't open it, he gives an error: "File not found."
then the whole program stops running...
can someone help me?
VB.NET:
Dim a
a = InputBox("What do you want to run?", "Run...", "regedit")
Shell(a, 1)
On Error GoTo runerror
runerror:
MsgBox("Error! File doesn't exist!", MsgBoxStyle.Exclamation + 0, "Error!")
then the whole program stops running...
can someone help me?
Last edited: