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

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 &
Who is Participating?
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
Do not disabled the parent control. Disable only the required children groupbox/panel. And also keep your button outside those groupbox/panel.
dvplayltdAuthor Commented:
To emoreau

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.