Groups | Blog | Home
all groups > dotnet windows forms > july 2005 >

dotnet windows forms : Open Form in a Form


Chris Dunaway
7/6/2005 1:53:19 PM
If you must use a form, just set its TopLevel property to False and set
its parent to the panel and then show it. It will appear inside the
panel (but without a caption bar though).
Carlos J. Quintero [.NET MVP]
7/6/2005 3:51:55 PM
Couldn´t you use a Usercontrol to be hosted in a form or in a panel?

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Nassos" <nasos@orama-tech.gr> escribió en el mensaje
news:%23rlGCEjgFHA.3788@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Mick Doherty
7/6/2005 4:13:11 PM

[quoted text, click to view]

An MDI parent has an MDIClient control to host forms. Why do you not want an
MDI Form? You can dock other panels in an MDI Form so as to restrict the
MDIClient bounds. See the example on my site:
http://dotnetrix.co.uk/mdi.html

Other than that you should set the forms TopLevel property to False and add
it as a Control, but it will always show as unfocused.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html

Nassos
7/6/2005 4:54:36 PM
Hi All,
i was wondering , how is posible to open a Form inside a Panel (for example)
not through MDI property, is a container the right tool for this? How am
MDIParent form is doing it?
thx in advance

Herfried K. Wagner [MVP]
7/8/2005 12:00:00 AM
Chris,

"Chris Dunaway" <dunawayc@gmail.com> schrieb:
[quoted text, click to view]

The embedded form actually will have a caption bar.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Chris Dunaway
7/8/2005 6:43:24 AM
I stand corrected. I recall now, having to turn off the caption. It
is often suggested to use a UserControl instead of a form for this type
of thing. Are user controls any more light weight than a form?
Nassos
7/8/2005 11:30:29 AM
I want to thank you all for your replies, most appriciated, the TopLevel
property is the think i was looking thanx :-)

AddThis Social Bookmark Button