不对,不对,少了一节,还得先if combobox[i] setfocus 的吧?

解决方案 »

  1.   

    晕倒,不需要循环:
    选中所有的Combobox,然后到Object Inspecter中,选择事件页面,双击OnKeyDown,添加代码:
    if Key=VK_DOWN then
      (Sender as TCombobox).DroppedDown := True;
    if Key=VK_RETURN then
      (Sender as TCombobox).Text :=  (Sender as TCombobox).SelText;
    即可。
      

  2.   

    啊!?
    多谢大侠拨刀相助,呵呵,Kingron开始复出了?
      

  3.   

    没有,我也经常来CSDN,不过一般不回答问题了,看见你,就答了一下~~~~~~~,:)