Hi,
How to catch and identify a duplicate key exception?
I am using
catch (Exception err)
{
MessageBox.Show("Database error \n" + err.Message,
"Error",
MessageBoxButtons.OK, MessageBoxIcon.Warning);
return false;
}
but it is too generic, could some body give me a hand?.
thanks,