Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the design reason for using a group box instead of a panel on a windows form?

So I am designing a control with a window s form. I want to group some controls together with a caption. So naturally I would go with a GroupBox. However is there some advantage in using a panel instead? Something not immediatly obvious to one who is still a little green with form design? How about some "gotchas" as well.

like image 965
Mike T Avatar asked Jun 19 '09 17:06

Mike T


People also ask

What is the purpose of a group box?

The GroupBox displays a frame around a group of controls with or without a caption. Use a GroupBox to logically group a collection of controls on a form. The group box is a container control that can be used to define groups of controls.

What is the difference between the panel and group box control?

The GroupBox control is similar to the Panel control; however, only the GroupBox control displays a caption, and only the Panel control can have scroll bars.

What is a group box form control?

You can use a group box or a frame control to group related controls (such as option buttons, check boxes, or closely related contents) into one visual unit. Group boxes and frame controls are rectangular objects with optional labels. Use a group box or a frame control to visually organize related items on a form.


1 Answers

Some Advantages of Panel:

  • Scrollable
  • Lots of border style options.

An Advantage of GroupBox:

  • Group Title
like image 177
Matthew Jones Avatar answered Oct 10 '22 20:10

Matthew Jones