How open other app from within code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    #1

    How open other app from within code?

    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


  • Steven Nagy

    #2
    Re: How open other app from within code?


    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.

    Comment

    • James Jardine

      #3
      RE: How open other app from within code?



      "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.Diagnost ics
      namespace. Specifically the Process class. YOu can use the Process class
      to start an external application. You can specify other properties using
      the ProcessStartInf o 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.

      Comment

      Working...