Board index » delphi » ComboBox Dropdown Using Down Arrow Key Instead Of F4 Key

ComboBox Dropdown Using Down Arrow Key Instead Of F4 Key

How do you set a combobox to drop its list using the down arrow key
instead of using the F4 key?

Thanks in advance!

 

Re:ComboBox Dropdown Using Down Arrow Key Instead Of F4 Key


Quote
In article <375f1630.3394...@news.escape.ca>, m...@aol.com writes:
>How do you set a combobox to drop its list using the down arrow key
>instead of using the F4 key?

procedure TForm1.ComboBox1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
 if Key = VK_DOWN then
   ComboBox1.Perform(CB_SHOWDROPDOWN, 1, 0);
end;

Alan Lloyd
alangll...@aol.com

Other Threads