procedure TForm1.Edit1Enter(Sender: TObject);
begin
Exit;
With TEdit(Sender) do
Begin
SelStart := CaretPos.X;
SelLength := 0;
end;
end;
@jamie: anything after exit will not be executed
U r correct. I pasted the wrong code. I placed the exit there as test and forgot to remove it for post.
Shameful sin on my part
![Sad :(](/Smileys/ExcellentSmileys1/sad.gif)