opendialog opens behind application

I have an application which has a VERY frustrating problem.

I have an opendialog dialog which opens behind the application, effectively locking the app.

The dialog is a standard delphi one, dropped on the form as per usual.

Am I missing the obvious here?

Tony Hunt
TonyDelphiHuntAsked:
Who is Participating?
 
AshusCZCommented:
I assume you didn't set the FormType to StayOnTop.. ?
0
 
atul_parmarCommented:
Your app might have a modal form open when you open the dialog.
0
 
TonyDelphiHuntAuthor Commented:
Thanks for both those comments.

They both sound a possibility, I don't THINK either apply but I'll have a good look on Friday when we're next working on that project.


0
 
ttdCommented:
I faced this kind of problem many times, and I belive there is nothing to do with Delphi code. It might be a problem with timing and/or focus handling of the OS. You might live with it. :)

Try Alt-Tab to switch to it, or if it is open behind an always-on-top window, try this sequence: Alt-Space, Enter, press and hold an arrow key until you see it.

The Alt-Space activates the system menu of the dialog.
The Enter will select the first menu item which is usually "Move".
The arrow key will move the dialog from behind the app's main window.
0
 
TonyDelphiHuntAuthor Commented:
OOPS, Sorry about that, I was SURE I'd accepted that answer..................
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.