MDI and Panels

  • Thread starter Thread starter Michael Turner
  • Start date Start date
M

Michael Turner

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.
 
Michael Turner said:
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.
Here is what I did:
 
Michael Turner said:
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()
 

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

Back
Top