Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2006

Tip: Looking for answers? Try searching our database.

Difference between Panel and GroupBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A.M-SG - 12 Jan 2006 23:44 GMT
Hi,

I understand that GroupBox provides a caption and border around a group of
controls, but other than that, what is the different between a Panel and
GroupBox?

Thank you,

Alan
Herfried K. Wagner [MVP] - 13 Jan 2006 01:05 GMT
"A.M-SG" <alanalan@newsgroup.nospam> schrieb:
> I understand that GroupBox provides a caption and border around a group of
> controls, but other than that, what is the different between a Panel and
> GroupBox?

Groupbox is not scrollable.

Signature

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

A.M-SG - 13 Jan 2006 17:57 GMT
Thank you for help.

Is there any reason that I should use GroupBox instead of Pannel at all ?

> "A.M-SG" <alanalan@newsgroup.nospam> schrieb:
>> I understand that GroupBox provides a caption and border around a group
>> of controls, but other than that, what is the different between a Panel
>> and GroupBox?
>
> Groupbox is not scrollable.
Bonnie Berent [C# MVP] - 15 Jan 2006 21:39 GMT
> Is there any reason that I should use GroupBox instead of Pannel at all ?

Sure there is! It's a great way to visually group things for your user.

~~Bonnie

> Thank you for help.
>
[quoted text clipped - 6 lines]
> >
> > Groupbox is not scrollable.
A.M-SG - 16 Jan 2006 16:32 GMT
But pannel also does the same thing. Why not using pannel?

>> Is there any reason that I should use GroupBox instead of Pannel at all ?
>
[quoted text clipped - 14 lines]
>> >
>> > Groupbox is not scrollable.
Bonnie Berent [C# MVP] - 16 Jan 2006 16:56 GMT
OK, yeah, you can have a visible border with a Panel, so in that respect you
have a visual cue for the user that you are grouping stuff together. However,
there is no caption, so there's no way to label that Panel without dropping a
Label control there somewhere too. I still prefer the GroupBox for this sort
of visual cue.

In my opinion, the purpose of Panels is to divide up a form when needed for
scrollbars and such. For example, you have a ListView on your form that takes
up the whole width of the form, but you also have a spot where you need to
put TextBoxes to be databound to whatever's being selected in that ListView.
You need to have the TextBox area on a Panel that is docked to the bottom of
the form and the ListView is docked to Fill with a splitter in between them.

~~Bonnie

> But pannel also does the same thing. Why not using pannel?
>
[quoted text clipped - 16 lines]
> >> >
> >> > Groupbox is not scrollable.
A.M-SG - 16 Jan 2006 17:59 GMT
Thank you Bonnie.

> OK, yeah, you can have a visible border with a Panel, so in that respect
> you
[quoted text clipped - 42 lines]
>> >> >
>> >> > Groupbox is not scrollable.
Bonnie Berent [C# MVP] - 16 Jan 2006 20:46 GMT
You're welcome!  =)

~~Bonnie

> Thank you Bonnie.
>
[quoted text clipped - 44 lines]
> >> >> >
> >> >> > Groupbox is not scrollable.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.