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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with using Try Catch exception - FileNotFoundException not wor

Status
Not open for further replies.

dmoonme

MIS
Jul 21, 2004
33
0
0
US
The generic Exception only works. I want to prompt the user to download files if files are not found. What am I doing wrong?


Code:
Catch es As FileNotFoundException
MessageBox.Show("Download files off of network?", "File(s) Not Found!", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)

Catch es As Exception
MessageBox.Show(es.Message)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top