Question and Answer Database FAQ4332C.txt :How do I resond to the Enter key in a VCL control Category :VCL Platform :All Windows Product :C++Builder1.0, C++Builder3.x, C++Builder4.x, Question: How do I make a TEdit respond to the Enter key? Answer: Many people think that the OnEnter event is for the 'Enter' key. OnEnter is when the control. To respond to the control recieved focus. 'Enter' key, in the OnKeyDown event of the TEdit type: if (Key == VK_RETURN) { Key = NULL; DoSomething(); } 2/9/1999 10:32:13 AM
Last Modified: 01-SEP-99