By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,645 Members | 1,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,645 IT Pros & Developers. It's quick & easy.

Can I add a Form into a Panel

P: n/a
I am trying to add a Form into a Panel in .NET 2003:

Form2 ff2 = new Form2();
panel2.Controls.Add(ff2);

But it failed in runtime which said I could not add a top control into another control.
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"?

--
"Forward Galaxia"
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Galexia,

Set the toplevel property to false.

I hope this helps,

Cor
Nov 17 '05 #2

P: n/a
Thank you, Cor.
It works!

"Cor Ligthert" <no************@planet.nl> дʼ news:O5**************@TK2MSFTNGP09.phx.gbl...
Galexia,

Set the toplevel property to false.

I hope this helps,

Cor
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.