[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

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 ?

  • 2
1 Solution
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 :-)

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now