[TRUCO DELPHI] Prevenir CTRL+DELETE en DBGrid.
delphi
procedure Form1.DBGrid1KeyDown (Sender: TObject; var Key: Word; Shift:TShiftState); begin if (Shift = [ssCtrl]) and (Key = VK_DELETE) then Key := 0; {ignorar} end;
Saludos!
Escrito 29 agosto 2016 - 08:19
[TRUCO DELPHI] Prevenir CTRL+DELETE en DBGrid.
procedure Form1.DBGrid1KeyDown (Sender: TObject; var Key: Word; Shift:TShiftState); begin if (Shift = [ssCtrl]) and (Key = VK_DELETE) then Key := 0; {ignorar} end;
Saludos!