Hello everyone
In Vb6 and also in Vb.Net it is possible to embed an application inside a container control (PictureBox for example) using certain functions of the Windows API (FindWindow, SetParent and MoveWindows).
Thanks for your quick response.
If I have been watching this work, but it seems to me that it is not exactly the same.
What I intend is to run an executable (jar) inside the form of another executable (jar).
What you can do is for ex:
Create a nonui app which does output to std
From the 2nd app you can call the 1st app using shell and capture the output which you show in your form...
B4X:
shl.Initialize("shl", "gdal_merge.bat" , args)
shl.WorkingDirectory = "C:\OSGeo4W64\"
shl.Run(-1) ' .RunSynchronous(10000) 'set a timeout of 10 seconds
running = True
t.Enabled = True ' t is a Timer which i start after running the nonui app (in this case a batchfile)
End Sub
Sub Timer_Tick
If running Then
memo.Text = shl.GetTempOut ' show the active output in a textarea
End If
End Sub
But speaking about an UI App this will not work. I dont know if you can run another app "in yours".