SaveDialog TopMOst

I have an application without main form but with only datamodule that create one SaveDialog.
If I run the program with other windows opened in my desktop the savedialog remains hidden.
I tried with:

  Application.NormalizeTopMosts;
  SaveDialog.Execute;
  Application.RestoreTopMosts;

.. but it doesnt work..

rfedericoniAsked:
Who is Participating?
 
rfedericoniAuthor Commented:
With Application.Handle works! Thanks!
0
 
karagunesCommented:
Did you try this:

SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
0
 
rfedericoniAuthor Commented:
like so::

  SetWindowPos(SaveDialog1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
  SaveDialog1.Execute;

... i tired but it doesnt works
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
karagunesCommented:
Where do you call SaveDialog1 ? Please use Self.Handle instead of SaveDialog1.Handle.
0
 
karagunesCommented:
Or you can also try Application.Handle
0
 
rfedericoniAuthor Commented:
no comment
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.