Hi,
I have two forms (created by launching two different processes).
I want one of the forms to own the other.
I tried to use something like:
SetWindowLong(otherForm.Handle, GWL_HWNDPARENT, h.ToInt32());
(called from one form) but it seems that it doesn't work.
Does someone knows how to do it?
Thanks,
Alon.

Re: owning a process by Collin

Collin
Sun Jun 29 08:37:40 CDT 2008

What do you mean by different processes? Are each process in their
own executable? Did you launch the process using the Shell method or
function?

On Jun 27, 2:29=A0am, Alon <Alon @discussions.microsoft.com> wrote:
> Hi,
> I have two forms (created by launching two different processes).
> I want one of the forms to own the other.
> I tried to use something like:
> SetWindowLong(otherForm.Handle, GWL_HWNDPARENT, h.ToInt32());
> (called from one form) but it seems that it doesn't work.
> Does someone knows how to do it?
> Thanks,
> Alon.