Hi,
I try to catch the bugs with the database service is close
try
{
OleDbDataReader custReader = custCMD.ExecuteReader();
}
catch(System.Data.OleDb.OleDbException)
{
MessageBox.Show("656","Error on logining to database",MessageBoxButtons.OK, MessageBoxIcon.Error);
}
however the program is stopped at OleDbDataReader test= test.ExecuteReader(); with green colour highlighted. The error message is following message" An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll"
Thanks