|
-
Aug 10th, 1999, 04:02 PM
#1
Thread Starter
New Member
-
Nov 11th, 1999, 08:54 PM
#2
New Member
Don,
The problem occurs because you ActiveX DLL does not include a MDI form. Thus when you load your form in the ActiveX DLL which has its MDIClient an error occurs.
Basically what you want to do is to make your form a MDI_Client at run time. The only solution I could find so far is to use a set of API calls.
For your information an MDI form consist out of two windows. The one your looking for is the MDI_Client Window. (If you need more information on this subject see the Dan Appleman Book on the Win32 API). You need to make your form a client to that Window.
I don't have the exact code on me right now, but I can mail it to if you like. It's about two lines. For now I will give you the procedure.
1) Get handle to the MDI_Client Window use the GetWindow API call
2) Set your forms parent to the MDI_Client window with the SetParent API call
Your window is now part of the MDI form. However it will behave somewhat different when maximizing the form.
I hope this was a little bit helpful,
Regards,
Erik
-
Nov 23rd, 1999, 09:04 AM
#3
Lively Member
in this code:
formA: with text1 and command1
Private Sub Command1_Click()
Form2.Show
End Sub
formB: with command1
Private Sub Command1_Click()
Form1.Text1.Text = "Test"
End Sub
i need to do something like this but without knowing wich form call formb and put "Test" in the form that call the formb
-
Nov 23rd, 1999, 09:09 AM
#4
New Member
-
Nov 23rd, 1999, 09:16 AM
#5
Lively Member
I want to know which form call a second form
-
Nov 23rd, 1999, 07:52 PM
#6
Lively Member
U'll need to use the GetParent API call for this.
------------------
Gaurav Mahindra
[email protected]
-
Jun 11th, 2006, 09:33 PM
#7
New Member
Re: Form from AxtiveXDLL into MDIForm
Did anybody ever come up with a solution to this? I have an MDI child form loaded in an ActiveX dll. I'd like to pop this form up within an MDI form in the host application, but I get the exact same error. VB6. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|