Board index » delphi » disable alt-tab and ctrl+esc keys in delphi 2

disable alt-tab and ctrl+esc keys in delphi 2

How do i contoll the user to stay in my program
in win95, from using the switch alt-tab or task ctrl-esc keys

thanks
fr...@totcon.com

 

Re:disable alt-tab and ctrl+esc keys in delphi 2


Quote
fr...@totcon.com (frank perryman) wrote:
>How do i contoll the user to stay in my program
>in win95, from using the switch alt-tab or task ctrl-esc keys
>thanks
>fr...@totcon.com

procedure TurnSysKeysOff;
var
  OldVal : LongInt;
begin
  SystemParametersInfo (97, Word (True), @OldVal, 0)
end;

procedure TurnSysKeysBackOn;
var
  OldVal : LongInt;
begin
  SystemParametersInfo (97, Word (False), @OldVal, 0)
end;

Hope this helps
Meik Weber
m.we...@public.ndh.com or
100744.3...@compuserve.com

Other Threads