Link to home
Start Free TrialLog in
Avatar of negone
negone

asked on

bring form to top

I have a COM server that attempts a program login.  However, the login is a modal form, which appears behind the COM client.  How can I force the form above all other forms?
ASKER CERTIFIED SOLUTION
Avatar of cqhall
cqhall

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edey
edey

Also note that earlier v's of delphi (D3 & prior, i believe) wouldn't keep topMost forms topmost & you had to put a line like this in your application.OnDeactivate handler:

application.restoreTopMosts;

GL
Mike
Hi

Try this API call in your form's OnDeactivate event (or whenever you think it's necessary):

 ShowWindow(Form1.Handle, SW_SHOW);



  Filipe Correia