none
How to disable a radio button and not have it grayed? RRS feed

  • Question

  • How can I disable radio buttons in a GroupBox and not have the radio buttons grayed?  The effect would be like having a ReadOnly property for the radio button.


    REvans

    Tuesday, January 22, 2013 8:25 PM

Answers

  • REvans 11 :

    Does this help ? Used a panel and move radio buttons to form a group on a windows form.

     radioButton1.BackColor = this.BackColor;
     radioButton1.AutoCheck = false;

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 12:43 PM
    • Marked as answer by REvans611 Wednesday, January 23, 2013 3:47 PM
    Tuesday, January 22, 2013 9:06 PM

All replies

  • REvans 11 :

    Does this help ? Used a panel and move radio buttons to form a group on a windows form.

     radioButton1.BackColor = this.BackColor;
     radioButton1.AutoCheck = false;

    • Proposed as answer by Mike FengModerator Wednesday, January 23, 2013 12:43 PM
    • Marked as answer by REvans611 Wednesday, January 23, 2013 3:47 PM
    Tuesday, January 22, 2013 9:06 PM
  • Thanks, Venkat.  I will experiment with this and let you know if it works for me.

    REvans

    Wednesday, January 23, 2013 3:28 PM