1、在主窗体的private中定义过程:

procedure doenterastab(var Msg:TMsg;var Handled:Boolean);

begin
    if Msg.message=WM_KEYDOWN then
    begin
       if Msg.wParam=VK_RETURN  then
          keybd_event(VK_TAB,0,0,0);
    end; 
end; 

2、在主窗体的oncreate事件中加入:

Application.OnMessage:=doenterastab;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-10-04
  • 2021-06-07
  • 2021-11-24
猜你喜欢
  • 2021-11-13
  • 2021-10-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案