csharp try catch with error message
Code Example - csharp try catch with error message
try
{
//...some code
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
try
{
//...some code
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}