Home All Groups Group Topic Archive Search About

How open other app from within code?

Author
7 Jul 2006 3:37 AM
Ronald S. Cook
I have a VB.NET Win app wherein I would like to (via code) open another
application window external to my app's window and set the position and size
on the user's screen.

I would greatly appreciate any response/help.

Thanks,
Ron

Author
7 Jul 2006 6:14 AM
Steven Nagy
There is nothing in the .NET framework that lets you manipulate forms
that do not belong to your application. You will need to invoke some
lower level libraries, do window hooks, etc. I don't actually know how
to do this, but I know this is the starting place, and that MANY people
have posted similar questions in the groups so just google for it dude.
Author
9 Jul 2006 7:36 PM
James Jardine
"Ronald S. Cook" wrote:

> I have a VB.NET Win app wherein I would like to (via code) open another
> application window external to my app's window and set the position and size
> on the user's screen.
>
> I would greatly appreciate any response/help.
>
> Thanks,
> Ron
>
>
>

To open another application you want to look at the System.Diagnostics
namespace.  Specifically the Process class.   YOu can use the Process class
to start an external application.   You can specify other properties using
the ProcessStartInfo object.   I don't have a code sample but there are
plenty out there.  YOu would just set the file you want to start and call 
Process.Start on it.