Use the OnKeyPress event
and in the corresponding function :
void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &Key)
{
if ( Key = = VK_RETURN){
.....
}
}
KEEZER wrote:
> How?
>
> I want to runtime detect a carriage return "event" in a TEdit control.
> Would I use THotKey for this?
>
> DaveK