C
Cass
I've programmed an autorun program. I would like to create a custom
error message when a person clicks on a button & the file is not in
the directory.
For example, the code for a button looks like this:
Private Sub filename_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles filename.Click
Shell("\file.exe", vbMaximizedFocus)
End Sub
If I remove file.exe from the directory because they hadn't, for
example, purchased the software, I want a custom error message to
appear.
Can anyone help me with the code for this?
error message when a person clicks on a button & the file is not in
the directory.
For example, the code for a button looks like this:
Private Sub filename_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles filename.Click
Shell("\file.exe", vbMaximizedFocus)
End Sub
If I remove file.exe from the directory because they hadn't, for
example, purchased the software, I want a custom error message to
appear.
Can anyone help me with the code for this?