Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: NetNX on November 28, 2006, 06:31 AM

Title: Loading an EXE into an MDI form.
Post by: NetNX on November 28, 2006, 06:31 AM
I'm wonder is it possible to load an Another exe into my VB6 MDI Form.
Title: Re: Loading an EXE into an MDI form.
Post by: NetNX on November 28, 2006, 06:56 AM
Private Declare Function SetParent Lib "user32" (ByVal
hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function FindWindow Lib "user32"
Alias "FindWindowA" (ByVal lpClassName As String, ByVal
lpWindowName As String) As Long

Dim MyHandle As Long
Private Sub Form_Load()
Shell ("c:\winnt\notepad.exe")
MyHandle = FindWindow(vbNullString, "Untitled - Notepad")
SetParent MyHandle, Me.hWnd
End Sub
Title: Re: Loading an EXE into an MDI form.
Post by: UserLoser on November 28, 2006, 05:56 PM
Question makes no sense
Title: Re: Loading an EXE into an MDI form.
Post by: topaz on November 28, 2006, 06:37 PM
This guy has a history of being an idiot... read his posts.
Title: Re: Loading an EXE into an MDI form.
Post by: warz on November 28, 2006, 06:58 PM
LoadLibrary?
Title: Re: Loading an EXE into an MDI form.
Post by: l2k-Shadow on November 28, 2006, 07:41 PM
He meant how to set a different parent window for a program.
Title: Re: Loading an EXE into an MDI form.
Post by: topaz on November 28, 2006, 08:12 PM
Quote from: l2k-Shadow on November 28, 2006, 07:41 PM
He meant how to set a different parent window for a program.

Is that why he titled his post Loading an EXE into an MDI form.?
Title: Re: Loading an EXE into an MDI form.
Post by: l2k-Shadow on November 28, 2006, 09:18 PM
Quote from: topaz on November 28, 2006, 08:12 PM
Quote from: l2k-Shadow on November 28, 2006, 07:41 PM
He meant how to set a different parent window for a program.

Is that why he titled his post Loading an EXE into an MDI form.?

As to that I have no idea, I was simply stating that is what he meant, as seen from his second post, since you guys seem to have missed it.
Title: Re: Loading an EXE into an MDI form.
Post by: FrOzeN on November 28, 2006, 10:16 PM
Um.. I though the title imposed a pretty clear message as to what he wants. Just "technically" worded incorrectly.

He wants to be able to open an .exe with his program and have that .exe's window shown inside his MDI form.
Title: Re: Loading an EXE into an MDI form.
Post by: Warrior on November 29, 2006, 03:13 PM
I agree with Frozen. If he didnt know HOW to do it how do you expect him to properly detail what he wants to get done? He did it the best he could
Title: Re: Loading an EXE into an MDI form.
Post by: Joe[x86] on November 29, 2006, 11:52 PM
I agree with Warrior.

Wait.. what the..
Title: Re: Loading an EXE into an MDI form.
Post by: l2k-Shadow on November 30, 2006, 12:08 AM
Quote from: Joex86] link=topic=16081.msg161995#msg161995 date=1164865953]
I agree with Warrior.

Wait.. what the..

Your posts are so useless, that they are just as useless as this post which I am typing and posting right now. :D
Title: Re: Loading an EXE into an MDI form.
Post by: Hero on November 30, 2006, 02:43 AM
Quote from: l2k-Shadow on November 30, 2006, 12:08 AM
Quote from: Joex86] link=topic=16081.msg161995#msg161995 date=1164865953]
I agree with Warrior.

Wait.. what the..

Your posts are so useless, that they are just as useless as this post which I am typing and posting right now. :D
And this one.
Title: Re: Loading an EXE into an MDI form.
Post by: Joe[x86] on December 02, 2006, 01:35 AM
Quote from: heRo on November 30, 2006, 02:43 AM
Quote from: l2k-Shadow on November 30, 2006, 12:08 AM
Quote from: Joex86] link=topic=16081.msg161995#msg161995 date=1164865953]
I agree with Warrior.

Wait.. what the..

Your posts are so useless, that they are just as useless as this post which I am typing and posting right now. :D

And this one.

I agree with heRo. HeRo's posts are useless.
Title: Re: Loading an EXE into an MDI form.
Post by: Hero on December 02, 2006, 01:37 AM
Quote from: Joex86] link=topic=16081.msg162085#msg162085 date=1165044918]
Quote from: heRo on November 30, 2006, 02:43 AM
Quote from: l2k-Shadow on November 30, 2006, 12:08 AM
Quote from: Joex86] link=topic=16081.msg161995#msg161995 date=1164865953]
I agree with Warrior.

Wait.. what the..

Your posts are so useless, that they are just as useless as this post which I am typing and posting right now. :D

And this one.

I agree with heRo. HeRo's posts are useless.

And this one.
Title: Re: Loading an EXE into an MDI form.
Post by: shout on December 05, 2006, 01:17 PM
spam.
Title: Re: Loading an EXE into an MDI form.
Post by: Grok on December 05, 2006, 04:47 PM
I'm disappointed in a lot of you over these types of replies.  If you are not interested in staying on topic and being helpful, do not post at all in this forum.
Title: Re: Loading an EXE into an MDI form.
Post by: warz on December 05, 2006, 07:01 PM
Quote from: Grok on December 05, 2006, 04:47 PM
I'm disappointed in a lot of you over these types of replies. If you are not interested in staying on topic and being helpful, do not post at all in this forum.

Your post wasn't on topic, or helpful either, though. :P
Title: Re: Loading an EXE into an MDI form.
Post by: Mystical on December 05, 2006, 09:28 PM
 So he wants to load another exe into his mdi as a mdi child?
Title: Re: Loading an EXE into an MDI form.
Post by: Joe[x86] on December 07, 2006, 03:47 AM
Quote from: Mystical on December 05, 2006, 09:28 PM
So he wants to load another exe into his mdi as a mdi child?

Yes.

Quote from: warz on December 05, 2006, 07:01 PM
Your post wasn't on topic, or helpful either, though. :P

Neither was yours!

Quote from: Grok on December 05, 2006, 04:47 PM
I'm disappointed in a lot of you over these types of replies. If you are not interested in staying on topic and being helpful, do not post at all in this forum.

Our bad.
Title: Re: Loading an EXE into an MDI form.
Post by: NetNX on December 07, 2006, 08:47 AM
Yes because I couldn't describe what I wanted to do made finding it on Google a tedious task. After looking for a bit I created the post and after I found what I was searching for I amended the post. :P