Metodo EXIT

Delphi

07/02/2003

Como eu faço para ir para o metodo EXIT de um DBcombo, quando eu teclar ENTER

Obrigado
Jelves@terra.com.br


Jelves

Jelves

Curtidas 0

Respostas

Ladeira

Ladeira

07/02/2003

No método KeyPress do componente digite:

[b:fe22039ea6]if key = #13 then
dbCombo1Exit(sender);[/b:fe22039ea6]

Ou no KeyDown:

[b:fe22039ea6]if key = VK_RETURN then
dbCombo1Exit(sender);[/b:fe22039ea6][/b]


GOSTEI 0
POSTAR