View Single Post
  #4 (permalink)  
Old August 27th, 2009, 07:07 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well in that case get rid of the try/catch inside the method, and just catch it in the outer code:

Code:
try
{
this.dtperson = Form1.GetData(@"C:\TempCsvFiles\person.CSV");
}
catch(Exception ex)
{
    MessageBox.Show("An exception occurred: " + ex.Message);
}
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?