I hope someone can help me,
Is there a way to have the program check if it is on the foreground?
I want to make a program which will open a 2nd program, once that 2nd program is finished/closed the focus should go back to my app and it needs to do something else.
I have tried with Form1.Focus (= true) and Control("Form1").Focus = true
But I cannot seem to get it working.
I also thought i might be able to use a Textbox for the focusing part but that
also didn't do anything.
The workaround would be to have a MsgBox popup which the user needs to click..
but that would only be a last resort ...
I could use some :sign0085:
Thanks
Is there a way to have the program check if it is on the foreground?
I want to make a program which will open a 2nd program, once that 2nd program is finished/closed the focus should go back to my app and it needs to do something else.
I have tried with Form1.Focus (= true) and Control("Form1").Focus = true
But I cannot seem to get it working.
I also thought i might be able to use a Textbox for the focusing part but that
also didn't do anything.
The workaround would be to have a MsgBox popup which the user needs to click..
but that would only be a last resort ...
I could use some :sign0085:
Thanks