Hello,
I have a c# windows application and I am using a try catch block to handle some exception.
I want to show show error in messagebox. but the problem is that program execution does not stop there.
If I use 'throw new exception', I get that ugly windows default msg box.
any solutions?
I have a c# windows application and I am using a try catch block to handle some exception.
I want to show show error in messagebox. but the problem is that program execution does not stop there.
If I use 'throw new exception', I get that ugly windows default msg box.
any solutions?
Code:
try
{
...code
}
catch (Exception)
{
MessageBox.Show("Error: Invalid Parameters" + Environment.NewLine + "Enter correct values", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Comment