Window Forms and panels  
Author Message
SteveSpence





PostPosted: Mon Feb 26 16:15:37 CST 2007 Top

Winforms >> Window Forms and panels Should anything even a menu, toolbar or statusbar ever be directly placed on
the main window or should they always be placed on a container such as a
panel?

Bill

DotNet263  
 
 
Herfried





PostPosted: Mon Feb 26 16:15:37 CST 2007 Top

Winforms >> Window Forms and panels "Bill Gower" <EMail@HideDomain.com> schrieb:
> Should anything even a menu, toolbar or statusbar ever be directly placed
> on the main window or should they always be placed on a container such as
> a panel?

They do not need to be placed on a panel and in general there is no reason
for doing that.

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

 
 
RobinS





PostPosted: Tue Feb 27 01:25:55 CST 2007 Top

Winforms >> Window Forms and panels
"Herfried K. Wagner [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> "Bill Gower" <EMail@HideDomain.com> schrieb:
>> Should anything even a menu, toolbar or statusbar ever be directly
>> placed on the main window or should they always be placed on a container
>> such as a panel?
>
> They do not need to be placed on a panel and in general there is no
> reason for doing that.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Maybe he's confusing it with WPF. In WPF, you can only put one thing in a
window. So if you want to put something besides a button or a listbox or a
status bar in it, you have to put a panel in it first and then put the
stuff inside the panel.

Robin S.