GroupBoxes and Panels arrange controls on a GUI.
Panels are typically used to group several controls of similar functionality or several controls that are related in a GUI. All of the controls in a
Panel move together when the
Panel is moved. Furthermore, a
Panels can also be used to show or hide a set of controls at once. When you modify a container’s
Visible property, it toggles the visibility of all the controls within it.
The primary difference between these two controls is that
GroupBoxes can display a caption (i.e., text) and do not include scrollbars, whereas
Panels can include scrollbars and do not include a caption.
GroupBoxes have thin borders by default; ...