Hi!
Set the property TopLevel to false.
Hope that helps.
Best regards, Adrian.
"Galaxia" <Galaxia.X@gmail.com> schrieb:
>I am trying to add a Form into a Panel in .NET 2003:
>
[quoted text clipped - 5 lines]
> Can I have any way to add a Form into a Panel? Need I modify any property
> of the Form to make it not a "top control"?
\\\
Dim f As New Form2()
f.TopLevel = False
Me.Panel1.Controls.Add(f)
f.Show()
///
Notice that this may cause focus problems, creating a usercontrol is the
preferred way.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>