Forum Discussion

ThWatcher's avatar
ThWatcher
Occasional Contributor
13 years ago

Form appears behind other windows.

I have a form for the user to select the path to the application to be tested.

It works fine.



But now I'm trying to call the routine and form from QMetry.

And that works fine, except that the form appears behind other windows.

You have to move or minimize the other windows before you can get to the 'Form'.



I've tried calling 'SetFocus()' before calling the 'Form.Execute()'.



I've tried calling it in the 'OnShow' event for the form. Ex.:

----------------------------------

function frmGetDMMWDRunPath_OnShow(Sender)

{

   dialog.SetFocus();

}

----------------------------------

But neither of those seemed to work.





So I'm asking for help from anyone who knows more about it than me.



Thanks in advance for any help you can give.

Rick