John86a
asked on
Delphi 7 - How can I make the <enter> key on a button ?
Basically the button needs to act like enter key on this particular Memo, is that possible?
Modify this to
procedure TForm3.Button1Click(Sender: TObject);
begin
Memo1.SetFocus;
Keybd_Event(VK_RETURN, 1, 0, 0);
Keybd_Event(VK_RETURN, 1, KEYEVENTF_KEYUP, 0);
end;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That helped me track where my application was replacing <Enter> for <Tab> thank you.
Open in new window