473,544 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
+ 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 11893
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.co m

"Vincent Finn" <1@2.com> wrote in message
news:9n******** *************** *********@4ax.c om...
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.c om...
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.c om> 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****@communi ty.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
1448
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
5895
by: ram | last post by:
hi! can you suggest me a collapsible panel/groupbox for winform. thanks!
1
1141
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 it's overridden with no other information about it. Does this mean it allows reference to it, but it does nothing? In any case, it is good that...
7
1940
by: Mike Stephens | last post by:
How can I make a usercontrol host other controls, such as the Groupbox and Panel.
9
7361
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
2256
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 should not have any caption. (I am unable to turn off the caption that displays the name of the object).
4
5234
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 the same with my own control when i put multple of them on a panel or groupbox.
3
31513
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? For example, Gender ( )rb1 ( )rb2 Marital status ( )rb3 ( )rb4 On HTML, I could group them designating the same name for the radio buttons....
2
1559
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'. But I want it to be 'Raised'. This is possible if you add the reference- Microsoft Forms 2.0 Object Library, choose Microsoft Forms 2.0 Frame ...
0
7368
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7777
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5301
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4922
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3420
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3414
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1844
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 we have to send another system
1
990
muto222
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.