Running Another Application under VB2008 Express

B

BobK

This is my first post here so I apologize right up front if this is too
'newbie' or in the wrong place...

I am a somewhat experienced VB6 programmer now trying to work in VB2008
Express.

I would like to know how to have an existing EXE program 'run' in a Form in
a VB2008 application.

I have an existing VB6 program that can display a chart based on data in a
file. I would like to be able to activate that program to display data
generated by my new VB2008 project. It would be cumbersome to re-write the
entire VB6 program in VB2008.

Thanks in advance
Bob Kochem
 
M

Miro

Take a look at process.start

and if you are putting in an .exe - dont forget to put the full path

Process.Start("Notepad.exe") 'Will open up notepad
 
B

BobK

This looks close. May I ask in followup

It looks like this will launch the app but...

1.) Can I get the started application to appear within a form in my VB2008
app?

or

2.) Can I otherwise control its position and size on the screen to make it
overlay a desired area?

Thanks very much!!!
 
M

Miro

Hmmm... Ive never done that but im still a newbie too

You might be able to do something with the process ID the call creates.
That way you should be able to ( im assuming ) control something of the dos
window.

Sorry - might be a good idea to post another posting in this newgroup and
also the microsoft.public.dotnet.general if there is a way to open a dos
window as an mdi child.

Miro
 

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