Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Embedding a form onto a panel?

How/Can you embed a form onto a panel on another form? Is it even possible?

I'm using the C# Express Beta 2

C# Newbie
Friday, April 01, 2005

Yes it is possible. You have to set the TopLevel property of the form to false before adding it to the panel's control collection. I have to say that I have tried this and wasn't very impressed with the results. I had a lot of trouble with managing focus because the form never really seemed to ever "Activate" (the title bar was always inactive/grayed). However, you might have better luck than I did.

matt
Friday, April 01, 2005

One more thing... I tried it with .NET 1.1. Things might be better in .NET 2.0.

matt
Friday, April 01, 2005

Can you do that in vb.net as well?

What are the exact steps to add a form to another form's panel's control collection?

Mr. Analogy {ISV owner}
Thursday, May 05, 2005

*  Recent Topics

*  Fog Creek Home