Is it possible to run the GUI of another exe file in a MDI Child window?

Posted on 2005-05-16
Last Modified: 2010-05-01
I have a VB 6.0 application.  I want to run a seperate .exe file's GUI within this VB application's MDI child form.  Is it possible?  Thanks a lot.
Question by:DMCLab
    LVL 44

    Expert Comment

    Hi DMCLab,

    Not effectively, you can use the SetParent api call if you can determine the hWnd of the other application's window. However it will not be a VB MDI Child window and you therefore would also have to handle the positioning of the window within the mdi form and any change in position or size of the other application window.

    In essence it can be done to some extent but it does require a fair amount of work on your part, you cannot simply add it as a new mdi child unfortunately.

    Tim Cottee
    LVL 1

    Accepted Solution

    PAQed with no points refunded (of 125)

    Community Support Moderator

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now