We have two applications that were originally written in Delphi. Users regularly switch back and forth between the applications, and we provided a button to do so. We knew the ApplicationClass (TApplication) and the name of the window, so using FindWindow to switch was no problem.
We have moved one of the apps to C# (Visual Studio, per mgt. demand), and will eventually translate the other one. The C# can find the delphi app using the System.Diagnostics classes.
What we can not do is switch to an open instance of the C# app.
Using the Winsight tool, I can see the application class. This class does not always appear to be the same for the C# app. I have seen both WindowsForms10.Window.8.app3 and WindowsForms10.Window.8.appa7.
We do know the process name for the C# app. Does anyone know a way to switch to that process from the delphi app with just that information?
Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
We have moved one of the apps to C# (Visual Studio, per mgt. demand), and will eventually translate the other one. The C# can find the delphi app using the System.Diagnostics classes.
What we can not do is switch to an open instance of the C# app.
Using the Winsight tool, I can see the application class. This class does not always appear to be the same for the C# app. I have seen both WindowsForms10.Window.8.app3 and WindowsForms10.Window.8.appa7.
We do know the process name for the C# app. Does anyone know a way to switch to that process from the delphi app with just that information?
Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole