Using SetParent


I have a MDI form that should contain
inside other forms.
When I'm opening another form, and make
SetParent to the opened form, two strange things happened :
1. When I click on the main form the    toolbar of the main form is disppears.

2. When I'm moving one of the form I opened inside, draging it with the mouse, there is a gap between the place of the pointer and the place of the draged form.

Any suggestions ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If these other forms are forms in the same app as the MDI, then instead of using SetParent, why not just set their MDIChild property to true?
AmnonAuthor Commented:
The other forms are part of ActiveX DLL
that i'm using.
AmnonAuthor Commented:
Adjusted points to 200
Instead of doing a setparent from form to form, Create a "parent" form with a frame control or a picture box control.  Then your child form in your AX Dll should have a corresponding frame or picturebox control.  Then call setparent from the frame or picturebox control.  This will work, trust me :-)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.