Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Put inside a panel a process currently running

$
0
0
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?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>