HighTechTalks DotNet Forums  

Open Form in a Form

Dotnet Framework (WinForms) microsoft.public.dotnet.framework.windowsforms


Discuss Open Form in a Form in the Dotnet Framework (WinForms) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Carlos J. Quintero [.NET MVP]
 
Posts: n/a

Default Re: Open Form in a Form - 07-06-2005 , 08:51 AM






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 (AT) orama-tech (DOT) gr> escribió en el mensaje
news:%23rlGCEjgFHA.3788 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
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




Reply With Quote
  #2  
Old   
Nassos
 
Posts: n/a

Default Open Form in a Form - 07-06-2005 , 08:54 AM






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



Reply With Quote
  #3  
Old   
Mick Doherty
 
Posts: n/a

Default Re: Open Form in a Form - 07-06-2005 , 10:13 AM




"Nassos" <nasos (AT) orama-tech (DOT) gr> wrote

Quote:
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
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




Reply With Quote
  #4  
Old   
Chris Dunaway
 
Posts: n/a

Default Re: Open Form in a Form - 07-06-2005 , 03:53 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).


Reply With Quote
  #5  
Old   
Nassos
 
Posts: n/a

Default Re: Open Form in a Form - 07-08-2005 , 03:30 AM



I want to thank you all for your replies, most appriciated, the TopLevel
property is the think i was looking thanx :-)



Reply With Quote
  #6  
Old   
Herfried K. Wagner [MVP]
 
Posts: n/a

Default Re: Open Form in a Form - 07-08-2005 , 06:21 AM



Chris,

"Chris Dunaway" <dunawayc (AT) gmail (DOT) com> schrieb:
Quote:
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).
The embedded form actually will have a caption bar.

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


Reply With Quote
  #7  
Old   
Chris Dunaway
 
Posts: n/a

Default Re: Open Form in a Form - 07-08-2005 , 08:43 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?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.