How open other app from within code?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

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
 
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.
 
Ronald S. Cook said:
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.
 
Back
Top