Главная страница | назад





Article #19283: How do I make a TEdit respond to the Enter key?

 Question and Answer Database
FAQ4283C.txt :How do I make a TEdit respond to the Enter key?
Category :VCL
Platform :Win95/NT
Product :C++Builder1.0, C++Builder3.x,
Question:
How do I make a TEdit respond to the Enter key?
Answer:
In the OnKeyDown event of the TEdit type:
if (Key == VK_RETURN)
{
Key = NULL;
DoSomething();
}
12/16/1998 8:59:28 AM

Last Modified: 01-SEP-99