Running an application inside of an application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mxed
    New Member
    • Jan 2010
    • 1

    Running an application inside of an application

    Hey

    I'm trying to create an app as a "graphic" container, where I can have other app's running inside of it ..

    eg. I have a tab window with two tabs. In the first tabpage I could have notepad running eg. and in the second tabpage i could have wordpad running or w/e exec.

    So you see, i'm not trying to create an app that can launch other executables as normal, like a shortcut on the desktop. I'm want to create an app that is like a GUI wrapper ..

    I've been rolling around on google for a few days now, and the closest thing i've found is CreateProcess() ; .. but that opens the exe as normal .. and I havn't found a way to tell it to open it in a window in my app.

    Not sure if this is the right forum to ask .. but I use Visual Studio 2008 and I'm using the form designer to create my app. I have also attached a staged screenshot to help illustrate what I'm talking about.

    Any help is appriciated, even if you can point me in a direction of where to look for an answer. Thanks.
    Attached Files
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    You cannot run any other application inside your form.....

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      You would need to use some Win32 API for this, grab the new processes window handle and somehow declare it as a child of your own.
      How that is done, or even if its possible, i do not know.

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Window process need to be defined as children of other process when the process is created. You can't take one process and suddenly declare it as a child to your process. You can however create processes that are children to your own processes.

        Maybe you can backup a minute and tell us why you are trying to do this?

        Comment

        Working...