BuonGiorno a tutti!![]()
Devo chiudere una DBGrid alla pressione del tasto invio.
Come posso fare?
Ho già provato con questi 2 eventi ma niente:
codice:procedure TForm3.DBGRID3KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if key = 13 then begin DBGrid3.Visible := False; end; end; procedure TForm3.DBGRID3KeyPress(Sender: TObject; var Key: Char); begin if Key= chr(13) then DBGrid3.Visible := False; end;