View Full Version : مشکلی با Combobox
javidtaheri
چهارشنبه 10 تیر 1383, 13:15 عصر
میخواهم با زدن دکمه Enter روی combobox کل ایتم ها نمایش داده شود(مانند موس )
alish
چهارشنبه 10 تیر 1383, 14:21 عصر
کلید کم بود Enterرا انتخاب کردی
procedure TForm1.ComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
if (Key=#13) and (not ComboBox1.DroppedDown) then
begin
ComboBox1.DroppedDown:=True;
Key:=#0;
end;
end;
vBulletin® v4.0.8, Copyright ©2000-1391, Jelsoft Enterprises Ltd.