?
Solved

Need to Load an EXE file inside a MDI form

Posted on 2008-10-16
2
Medium Priority
?
563 Views
Last Modified: 2013-12-26
Hi all,

I'm building an application that is a wrapper for everthing this company needs to do. I have all of their forms, Webbrowser, utilites etc. loading up as child forms in a parent MDI form. The only other thing this company uses is a program that runs all of their Client info and Sales. They would like me to make that executable load up inside my MDI form so they basically can open my program and never have to leave it. I'm not sure how I can do this.... maybe the setparent API?? Could I set that application as a child of my MDI form? Any other implementation ideas?

If any of you have done this.... the code snippet would be great!
0
Comment
Question by:md0333
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 2000 total points
ID: 22738415
I guess SetParent could be what you're looking for. MDI parent windows are specially prepared to contain other windows, so it will manage well. But you'll need to get the hWnd of the main window of the application that you want to embed inside your MDI. One possible approach to this is using FindWindow API, that will return the hWnd of a window based on it's window bar title. If the title of the application'stitle bar is more or less unique, you can then use FindWindow to get it's hWnd and then use SetParent to make it child of your MDI form.
0
 

Expert Comment

by:anil_marar
ID: 23508563
Container for EXE files
Hi, I have three seperate Applications(exe) files belonging to same bussiness. I need to make a container application for these applications. I have tried it by using the setparent API. But since the applictions has MDI forms in it, it is not woriking properly. Can somebody help me in this issue ? Thanks in advance.

Regards
Anil
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

765 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