Home All Groups Group Topic Archive Search About

Starting a process, controling the window

Author
6 Feb 2006 3:57 PM
Zorpiedoman
I would like to be able to start a process, but then maintain some control
over the window it creates.  (Size, position, always on top, etc.)

Can't seem to locate documentation on this one.  Can anyone point me
somewhere?  Thanks.

(The ultimate goal would be the ability to make an external program behave
as if it was an MDI child in my program.)

--
--Zorpie

Author
6 Feb 2006 4:12 PM
jvb
Zor,

See if this helps...

Dim frmNew as New MyForm

MyForm.TopMost = True
MyForm.Size = New System.Drawing.Size(<width>, <height>)
MyForm.Location = New System.Drawing.Point(<x>, <y>)

MyForm.MDIParent = Me

MyForm.Show()
Author
6 Feb 2006 9:36 PM
Zorpiedoman
Thanks, but I'm trying to control an external process' window, not a form
that is native to my program.

--
--Zorpie


Show quoteHide quote
"jvb" wrote:

> Zor,
>
> See if this helps...
>
> Dim frmNew as New MyForm
>
> MyForm.TopMost = True
> MyForm.Size = New System.Drawing.Size(<width>, <height>)
> MyForm.Location = New System.Drawing.Point(<x>, <y>)
>
> MyForm.MDIParent = Me
>
> MyForm.Show()
>
>