{
Usually DisableControls is called within the context of a try...finally block that reenables the controls even if an exception occurs. For example:
} 
with CustTable do
begin
  DisableControls;
  try
    First;
    while not Eof do
    begin
     { Process each record here }
     Next;
    end;
  finally
    EnableControls;
  end;
end; 

