Hi! I am quite new in VB. I am trying to make a sw which operate with another application.
I found a code to lunch an application inside myone and it works. But what if I want to do it with an application which is already open and running.
The code which I found is the following.
Dim indmix As Process = Process.Start(Mypath & "\IMS\Indimix.exe")
SetParent(indmix.MainWindowHandle, IndMixTab.Handle)
SendMessage(indmix.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
I tried also to replace the 1st line with the one below
Dim indmix As Process() = Process.GetProcessesByName("Indimix.exe")
But it didn't work as it says MainWindowHandle is not part of diagnostics.process
Is there a way to do it?
I found a code to lunch an application inside myone and it works. But what if I want to do it with an application which is already open and running.
The code which I found is the following.
Dim indmix As Process = Process.Start(Mypath & "\IMS\Indimix.exe")
SetParent(indmix.MainWindowHandle, IndMixTab.Handle)
SendMessage(indmix.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
I tried also to replace the 1st line with the one below
Dim indmix As Process() = Process.GetProcessesByName("Indimix.exe")
But it didn't work as it says MainWindowHandle is not part of diagnostics.process
Is there a way to do it?