Containing Form in a Form
hi there..
How can I contain Form in a Form.. ?
like making form1 then make it visable approperiatly in some area inside
form2.
instead of adding the controls of form1 in a Panel or a TabCtrl Page in form2.
thanks.
[254 byte] By [
hthm] at [2007-11-19 10:00:17]

# 1 Re: Containing Form in a Form
It sounds like what you want is an MDI (Multiple Document Interface). They aren't as common anymore but what you need to do is create the container form and set it's IsMdiContainer property to True (programatically or in the design editor). Then before you show the 2nd form, set its MdiParent property to be the Container form:
Private Sub frmContainer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim frmContained As New ContainedForm
frmContained.MdiParent = Me
frmContained.Show()
End Sub
- Tom