Solved

application and my app

Posted on 2006-11-12
1
166 Views
Last Modified: 2010-04-05
hi all,
how are you?
I want to run another application and fix that into my form.
Yes, i can run an application by apishell, but how can i fix it into my application? i don't want to see 2 windows.
thanks alot.
0
Comment
Question by:tnhphuong
1 Comment
 
LVL 4

Accepted Solution

by:
tobjectpascal earned 250 total points
ID: 17928463
Add a Panel onto your Form.

procedure TForm1.Button1Click(Sender: TObject);
Var
 H: HWnd;
begin
 H:=FindWindow('notepad',nil);
 If H<>0 Then
  Begin
    Windows.SetParent(H,Form1.Panel1.Handle);      SendMessage(Form1.Panel1.Handle,wm_command,SC_MAXIMIZE,0);
  End;
end;
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 130
Working with hours 3 72
Error E2158 compiling with Delphi XE10 Seattle 2 124
Can Live bindings change TGrid Cell Colour ? 1 29
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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