473,473 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

panel v groupBox?

Can anyone tell me what the difference is?
Where I might need one over the other?

I know in VB there was a panel and no groupBox
in MFC there was a groupBox and no panel

But in C# they are both available and seem identical

Just curious

Vin

Nov 16 '05 #1
4 11888
Vincent,

I groupbox will draw a border around the edge, whereas a panel will not
(you might be able to specify a border). Also, a groupbox will draw text on
the top in the border as well, whereas a panel will not.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Vincent Finn" <1@2.com> wrote in message
news:9n********************************@4ax.com...
Can anyone tell me what the difference is?
Where I might need one over the other?

I know in VB there was a panel and no groupBox
in MFC there was a groupBox and no panel

But in C# they are both available and seem identical

Just curious

Vin

Nov 16 '05 #2
The GroupBox has a title (its Text property) and a recessed 3D border; the
Panel has no title and a variety of border styles. The Panel can also scroll
its contents if they're too large to be displayed within the panel's
rectangle, whereas the GroupBox has no scrolling capability.

Tom Dacon
Dacon Software Consulting

"Vincent Finn" <1@2.com> wrote in message
news:9n********************************@4ax.com...
Can anyone tell me what the difference is?
Where I might need one over the other?

I know in VB there was a panel and no groupBox
in MFC there was a groupBox and no panel

But in C# they are both available and seem identical

Just curious

Vin

Nov 16 '05 #3
On Mon, 16 Aug 2004 11:35:03 -0400, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.com> wrote:
Vincent,

I groupbox will draw a border around the edge, whereas a panel will not
(you might be able to specify a border). Also, a groupbox will draw text on
the top in the border as well, whereas a panel will not.

Hope this helps.


You can specify a border for the pane although not one that looks the
same as the group box

Thanks, Vin
Nov 16 '05 #4
On Mon, 16 Aug 2004 08:48:31 -0700, "Tom Dacon"
<td****@community.nospam> wrote:
The GroupBox has a title (its Text property) and a recessed 3D border; the
Panel has no title and a variety of border styles. The Panel can also scroll
its contents if they're too large to be displayed within the panel's
rectangle, whereas the GroupBox has no scrolling capability.

Tom Dacon
Dacon Software Consulting


OK, my curiosity is satisfied

It does seem like either of the two could have been extended to cover
the extra couple of properties though

Oh well, one of life's little mysteries

Thanks, Vin
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dayne | last post by:
Can someone explain to me the differences/similarities between the Panel and Groupbox control...They seeem to be the same to me. Dayne
1
by: ram | last post by:
hi! can you suggest me a collapsible panel/groupbox for winform. thanks!
1
by: Peter Oliphant | last post by:
A Panel does not have a caption, and so doesn't really need a Text property. Yet, it does have this property. Furthermore, on-line MSDN says it is 'overridden'. The 'detail' of this also just says...
7
by: Mike Stephens | last post by:
How can I make a usercontrol host other controls, such as the Groupbox and Panel.
9
by: Kevin | last post by:
I would like to print the panel control. The panel controls contains images and lables. If i can capture as image i can use it for other purposes like Zooming etcc.. Any body have any idea...
9
by: vvenk | last post by:
Hello: I was planning to use the panel to create a dockable container at the bottom of the screen that will display user preferences. I would like it to behave the following way: 1. It...
4
by: Sagaert Johan | last post by:
Hi I am creating a custom control and i want it to behave like a radiobutton : If multiple radiobuttons are on a panel clicking one unchecks the others. How is this achieved ? I want to do...
3
by: Sin Jeong-hun | last post by:
Suppose there are 4 radion buttons on the form. There's no groupbox or panel to seperate them. By default, the 4 radio buttons are mutually exclusive. Is it possible to group them into two groups?...
2
by: priyamtheone | last post by:
How can I draw a frame or groupbox or panel whose style effect is 'Raised' (See attachment). In most of the cases when we set the Frame or Panel borderstyle to 3D, the style effect is 'Sunken'....
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.