Hi, Chip.

You are correct that disabling a group box doesn't disable any of the controls that appear as children of that group. That's pretty typical of Windows UI programming. In fact, you'll find that Microsoft's UI guidelines recommend that you do not disable group boxes (from http://msdn.microsoft.com/en-us/library/windows/desktop/aa511459.aspx):

*Don't disable group boxes.* To indicate that a group of controls doesn't currently apply, disable all the controls within the group box, but not the group box itself. This approach is more accessible and can be supported consistently by all UI frameworks.

Typically, since you already know your controls, a simple routine to set their states based on their IDs is fairly common. That being said, there are all kinds of ways to enable/disable controls on the fly. Do you have a specific example of what you're trying to accomplish.

Aaron

On 9/30/2012 7:29 PM, Chip Orange wrote:
Hi Aaron (or anyone),

I'd like to be able to enable/disable all the controls in a group at once.
I've tried setting the .enabled and .tabstop properties of the group itself,
and that doesn't do anything; and I've looked for a collection listing the
controls so I could run through them and enable or disable all of them, and
can't find any such collection.

Can you suggest any way I can disable all the controls in a group other than
list each one by name?

Thanks.

Chip


--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to