I would not expect a red border on one AdvEdit if they are set valid one after the other...
AdvEdit_Validate.zip (71.5 KB)
The code behind Button3 is:
procedure TForm1.Button3Click(Sender: TObject);
begin
if SameText(AdvEdit1.Text, 'valid') then
AdvEdit1.HideValidation
else
AdvEdit1.ShowValidation('Invalid 1');
if SameText(AdvEdit2.Text, 'valid') then
AdvEdit2.HideValidation
else
AdvEdit2.ShowValidation('Invalid 2');
end;
No other code, no change on properties of the controls...
Thanks/Regards, Tom