"Michael Turner" wrote:
Hi
Is it possible to set a panel as an MDI container? I need to be able to have
an mdi application but the child windows should only be able to be opened in
a specific part of the screen. Any Ideas?
Mike.
I have a parent screen that refers to a child called "frmClientMaint."
"frmClientMaint" is actually another predesigned form with all its crap built
on it. On the parent's design screen I make the panel small so that I can
play with other boxes and buttons easily. That is why I change the dimensions
in this code.
The panel that holds the child is named "pnlHoldChild."
Dim frmClient As New frmClientMaint
frmClient.MdiParent = Me
frmClient.Parent = Me.pnlHoldChild
Me.pnlHoldChild.Left = 1 : Me.pnlHoldChild.Top = 1
Me.pnlHoldChild.Height = 699
Me.pnlHoldChild.Width = 1015
Me.pnlHoldChild.Visible = True
frmClient.Show()