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

Posted on 2009-04-30
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 69

    Accepted Solution

    Do not disabled the parent control. Disable only the required children groupbox/panel. And also keep your button outside those groupbox/panel.

    Author Comment

    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 ...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Normally a window is moved by clicking on the caption bar and dragging. You may want your user to be able to move borderless forms or move a form by clicking anywhere in the form without the limitation to the caption bar. There are many ways to do i…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now