Solved

Manual TDBLookupCombo Drop down

Posted on 2002-05-29
4
191 Views
Last Modified: 2010-04-04
hi experts, l'm using delphi4 that would like to manually do drop down of TDBLookupCombo. for example, TDBLookupCombo will Drop Down when user press F3 and still remain the Drop Down when click on Button from TDBLookupCombo. how to do that...please help....urgent. thanks.
0
Comment
Question by:Explorer060599
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 7043693
No idea how to drop down a DBLookupComboBox. But thinking .
0
 

Author Comment

by:Explorer060599
ID: 7043790
nope...what i meant was making DBLookupComboBox's DropDown box comes out.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7043833
Set your Forms KeyPreview to True

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin

  if Key = VK_F3 then DBLookupComboBox1.DropDown;

end;


The Crazy One
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 50 total points
ID: 7043841
var
  bF3Invoked: Boolean;

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin

  if Key = VK_F3 then begin
    DBLookupComboBox1.DropDown;
    bF3Invoked := True;
  end;

end;

procedure TForm1.DBLookupComboBox1CloseUp(Sender: TObject);
begin

  if bF3Invoked then begin
    DBLookupComboBox1.DropDown;
    bF3Invoked := False;
  end;

end;
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question