• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

editing a DBLOOKUPCOMBOBOX

how can I saw that the user is writing on a dblookupcombobox,,,,,,is it impossible..................?.................can you tell me a propierty..or a method that let me see the letteres that user is typing...........
I'm in a hurry
0
Iamme
Asked:
Iamme
  • 2
1 Solution
 
ZifNabCommented:
Hi Iamme,

procedure TForm1.DBLookupComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
 showmessage(key);
end;

Regards, Zif.
0
 
intheCommented:
hi,
i would use
procedure TForm1.DBLookupComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
 Label1.Caption := DBLookupComboBox1.Text;
end;

as using the showmessage(key) will only show the last pressed key .
0
 
ZifNabCommented:
Hi Inthe,

The thing is Iamme, asked for a method to see the letters a user is typing. So I pointed to the keypress event. The showmessage was just a way to show that it intercepted the keypress of the user.

Iamme hasn't told what he wants to do with the event, therefor this stupid example.

Zif.
0
 
Pandian012000Commented:
Hi Iamme

  you can try this

  place a label next to dblookupcombo box

  in the exit event of dblookupcompo box write this

  label.caption := dblookupcompoboxname.text;

  will it ok for you

Regards

pandian  
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now