How to control of other window

There are 2 independent Windows application(A,B).
I was wondering if I click the button in A, then can I make the window B visible on top of A window?
I mean there is any way to control other windows? Just appear/disappear of other windows without any socket communication?

Sure

If you only have two windows (ie/ not multiple instances of the other window) then you can use implicit instances and literally say “Window2.Visible = true” or false as needed

IF you could have multiple instances of one of the windows then this becomes harder because all the windows are “Window2’s” (ie they may all be the same kind of window with different contents) and then you need to identify the ones you’re interested in differently

The IDE behaves like that
You can have several open projects at one time
Each window is the same kind of window but the contents are different

2 Windows applications are totally independent, it means that those will be built with each .exe file.
I think you are advising equivalent windows under the same Mainwindow. Am I right?

I think, if the two applications are written by you, implementing IPCSocket can be a solution to let the two applications communicate: http://documentation.xojo.com/index.php/IPCSocket

Okay. Thank you.