Setting the MDI Parent when it isn't 'Me'?

M

Mitchell Vincent

I have a module that creates an instance of a window but needs to set
the MDIParent property to the 'main' window, appropriately named
MainWindow.

When I do this :

Dim MyCustWindow As New CustomerWindow

MyCustWindow.MdiParent = MainWindow

It doesn't work. The only MDI examples I can find assume that the child
window is being created within the parent window's class. Is it not
possible to assign a child window from outside the parent window's class?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top