I'm wondering what the correct way is to pass on an exception from one method to my form.
public void test()
{
try
{
int num = int.Parse("gagw");
}
catch (Exception)
{
throw;
}
}
Form:
try
{
test();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
in this way i cannot see my text box.
See Question&Answers more detail:os