为什么我在edit控件的onkeypress事件中用以下方法测试是否按下了enter键,
在有的窗体行,有的窗体却不行,(按下enter键却无反应)?
试过将form的keypreview设为true也不行.if key=#13 then
   showmessage('this is return');