0

Is groupBox in WFA in C# usefull for something else than "just saying these components which are inside this groupBox belongs to one group"? Can I for example somehow get any information(get it from the groupBox not from the components inside) what happens inside or similar useful things?

user1097772
  • 3,499
  • 15
  • 59
  • 95

4 Answers4

1

Here is Microsoft's design guidelines for using Group Boxes:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa511459.aspx

They say, "aside from possibly providing an access key for a group of controls, it provides no functionality". The access key being used most commonly in the Radio Button case.

embedded.kyle
  • 10,976
  • 5
  • 37
  • 56
  • Note that certain *third-party* group boxes expand on this idea, e.g. DevExpress's group box has a "value" that is the "value" of the selected item, but the default Windows one is pretty thin. – Michael Edenfield Jun 22 '12 at 17:53
0

I love using groupBoxes for the "only one radio button may be selected at a time" feature.

Nick Babcock
  • 6,111
  • 3
  • 27
  • 43
0

Well it is useful as a container that you want to hide or show its content for some reason...

Pacane
  • 20,273
  • 18
  • 60
  • 97
0

The typical use for a group box is to contain a logical group of RadioButton controls.If you have two group boxes, each of which contain several option buttons (also known as radio buttons), each group of buttons is mutually exclusive, setting one option value per group. MSDN

Arjun Shetty
  • 1,575
  • 1
  • 15
  • 36