Embed Another Application In my C# App

G

Guest

I am looking to embed an application into my c# Application.
(Google Earth for reference)
It does not appear to have an OLE interface.

I want to use it on a panel within my application thus allowing me to add my
own customised tool bar etc.

Does anyone have any suggestions on how to best acheive this goal?
 
C

ChrisM

If it really doesn't have any sort of OLE or any other sort of programmable
interface, the only way I can think of to control it is using SendKeys. A
horrible solution IMHO, but sounds like it could be the only one...
 
G

Guest

There is a basic way to control it (it polls a text file)

The bit which i need a little assistance with is how i can actually embed
it's UI/ graphical output into my application so it appears to look like my
application.

An abstracted example would be to write an application that contains a panel
on which the windows calculator would appear. In that area of the ui, the
user could use all the functionality of the calculator as if it were in its
own window.

Is it maybe possible to enumerate the windows open, find the one that is
google earth and then asign its parent to a panel in my application ?? -
really dont know?

Shaun
 
G

Guest

The easiest way to complete your task is to find whether SDK/API is available
for the APP that you want to harness into your own.
If it's not, you need to use "screen scraping" approach (like there
http://www.codeproject.com/aspnet/weather.asp) and create wrapper what you
will use from you app
There is a basic way to control it (it polls a text file)

The bit which i need a little assistance with is how i can actually embed
it's UI/ graphical output into my application so it appears to look like my
application.

An abstracted example would be to write an application that contains a panel
on which the windows calculator would appear. In that area of the ui, the
user could use all the functionality of the calculator as if it were in its
own window.

Is it maybe possible to enumerate the windows open, find the one that is
google earth and then asign its parent to a panel in my application ?? -
really dont know?

Shaun

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top