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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Try this API call in your form's OnDeactivate event (or whenever you think it's necessary):
ShowWindow(Form1.Handle, SW_SHOW);
Filipe Correia
application.restoreTopMost
GL
Mike