Home All Groups Group Topic Archive Search About

Titlebar of MdiChild form in MdiParnet's Panel

Author
5 Feb 2006 5:00 PM
VB Newbie
I've put a MdiChild form into the Panel of MdiParent form.
But the titlebar of MdiChild is still Grey in color even I focus or activate
it.

Here is my code:

Dim frmNew As frmChild = New frmChild    'frmChild is the child form
frmNew.MdiParent = Me     'Me is the parent form
frmNew.Parent = Me.Panel1  
frmNew.Show()

Author
5 Feb 2006 5:06 PM
Armin Zingler
"VB Newbie" <VBNew***@discussions.microsoft.com> schrieb
> I've put a MdiChild form into the Panel of MdiParent form.
> But the titlebar of MdiChild is still Grey in color even I focus or
> activate it.
>
> Here is my code:
>
> Dim frmNew As frmChild = New frmChild    'frmChild is the child form
> frmNew.MdiParent = Me     'Me is the parent form
> frmNew.Parent = Me.Panel1
> frmNew.Show()


You must not put the child into the panel.


Armin