Re : how to use multile try catch block. |
| Ashutosh Dhok replied to sudhakar subramaniyan at 05-Jul-08 06:23 |
Hi Sudhakar,
Check this code for multiple catch block...
try
{
// Your code will be here....
}
catch(SqlException ex)
{
MessageBox.Show(ex.Message);
}
catch(IOException ex)
{
MessageBox.Show(ex.Message);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message); }
Regards Ashutosh |
|