Is it possible to shell an application seamlessly?

I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before

Answer this question

Is it possible to shell an application seamlessly?

  • mw2005

     

    Good code Billy, however this isn't what the user was asking for.



  • Milind Lele

    He plainly posted:

    I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before



  • Prashant R. S

     RB123 wrote:

    Thanks Renee!

    Are you aware of any wrappers available to run a command prompt as a window Sadly, I need to display old character based "dos" apps as windows within a shell written in VB, and I am becoming increasingly convinced that the task can't be managed with this platform.

    Any input greatly appreciated! 

    Process.Start("cmd")


  • Olman Q

    I'm not aware of anything natively (to .NET), however, the SetParent API may be usable, if you get the handle to the window that you open. Will it work Don't know, but it may be a start. You could use the FindWindow API to get a handle that you could use for SetParent.

    None of this is trivial, and is going beyond the basics, as it were.



  • ta5artir

     E10T wrote:

    He plainly posted:

    I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before

    Have You Tried the Code    Works a Charm In The Rest Of The World..........

    Process.Start("cmd")

    Process.Start("c:/windows/notepad")


  • sonaht

     SJWhiteley wrote:

    I'm not aware of anything natively (to .NET), however, the SetParent API may be usable, if you get the handle to the window that you open. Will it work Don't know, but it may be a start. You could use the FindWindow API to get a handle that you could use for SetParent.

    None of this is trivial, and is going beyond the basics, as it were.

    Where The Hell in the ORIGINAL POST Does He say Spawn DOS Programs

    Process.Start("c:/windows/notepad")

    Process.Start("C:/windows/system32/calc")

    Process.Start("cmd")

    Execute This Code..... You Will be Surprised.....

    Even If He wants to Spawn Dos Code He Can Do It from

    Process.Start("cmd")...

    GGGGGGGGGGGGGGGGGGGG’s


  • ddee

    Thanks Renee!

    Are you aware of any wrappers available to run a command prompt as a window Sadly, I need to display old character based "dos" apps as windows within a shell written in VB, and I am becoming increasingly convinced that the task can't be managed with this platform.

    Any input greatly appreciated!

     

     


  • noachr

     ReneeC wrote:
     

    Good code Billy, however this isn't what the user was asking for.

    Well Then What the the Hell was the user asking for


  • Dika

     

    SS$_TOOMUCHBEER

    Thanks SJ,

    There's noting wrong with billies code except what I hear RB saying is that he needs these things to be a part of his form just like the webbrowser control does.

    RB, if you don't need it to be a fixed part of your form, there are any number of ways to do this - includinf Billy's.

    If you need what you say you need, SJ, is totally right.

    Renee waves hi to SJ.

     

     

    Where The Hell in the ORIGINAL POST Does He say Spawn DOS Programs

    Look at the thread title and notice what he said here:

    "I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. "

    Billy's code is fine if you just want a detached window.

     

     



  • twinkieracer

  • Serpent

     

    This isn't what's happening. The Webrowser control has been supplied as a wrapper for the Active-X webbrowser and you are using that.

    There are no such analogs for the utilties you mentioned.

     

     



  • DEVIL King

     RB123 wrote:
    I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before

    Process.Start("c:\Windows\notepad.exe")


  • Messex

    RB,

    Are you wanting your old app to appear seamless just for aesthetics Will your 'front-end' wrapper be interacting with the old application in some way, or is it just there as a front-end menu of sorts; a high tech menu for an old school program

    The shell will work, but as you are aware, it will spawn another window.  I've tried something like this in a previous version of VB, and never was able to figure it out.  Hope you find out some good information.

    Matt

     


  • JA9999

    You've been reported a few times, huh ! Wonder why.

  • Is it possible to shell an application seamlessly?