How to produce behavior in which parent GroupBox is disable, but some of his child controls are enable ?

Posted on 2009-04-30
Medium Priority
Last Modified: 2013-12-17
Hi experts!

  Im using C# 2008 , WinForm NET 2. I have one complicated situation with some groupbox and panel which are build in one each other. Question is: I want to make Enable = False of parent control, but want one panel inside of this gropbox to be accessible, to be Enable = true (there button on it Which I want to be active.).  But when make Enable=False to parent control child control become Enable = False. I want some of this child to be Enable = true.

 Is there way to do this? I know that common solution is to change tactics, but it is difficult in this case &
Question by:dvplayltd
LVL 70

Accepted Solution

Éric Moreau earned 1500 total points
ID: 24269127
Do not disabled the parent control. Disable only the required children groupbox/panel. And also keep your button outside those groupbox/panel.

Author Comment

ID: 24270605
To emoreau

Yes .. i know about this option, but I have 3 groupbox with 10 controls on it ..one enable, one disable ..30 rows code ..and will hava again such case - that is why interesting will have some advanced solution ...

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question