Error (ImageList Control) example for C++ Builder
LEADImgList1->EnableMethodErrors= true;
try
{
LEADImgList1->LoadFromFile ("d:\\temp\\img\\test1.tif", 0, 0, -1);
}
catch(ELEADImgListError *e)
{
ShowMessage("Error Code :" + IntToStr(LEADImgList1->Error) +"\n"+ LEADImgList1->ErrorMsg );
}