-
SaveFileDialog
In my console app, when I call a SaveFileDialog, it appears underneath the console window. Sometimes completely obscuring the dialog, and so it seems like the app has hung when really, the focus is ona hidden window.
How can I make sure the dialog comes to the top of the Z-Order?
-
Try this :
Code:
SendKeys.SendWait("%(TAB)");
-
Is that guaranteed to bring up the right window though? Seems that the Alt Tab dialog tends to shuffle programs around depending on which one had focus last.
Seems a little bit loose to me at the moment.
Many thanks.
-
I don't know if that will work or not but i suppose it's just a solution . Another option is to minimize the console window and after the user clicks save button restore it's state back to normal , I believe with some API Functions .