title: How do I get which radio button is checked from a groupbox?
body: <p>I have these groupboxes:</p>
  
  <p><img src="https://i.stack.imgur.com/EyNQT.png" alt="Enter image description here"></p>
  
  <p>I want to run some code according to checked true state of a radio button like:</p>
  
  <pre><code>string chk = radiobutton.nme; // Name of radio button whose checked is true
  switch(chk)
  {
      case "Option1":
          // Some code
          break;
  
      case "Option2":
          // Some code
          break;
  
      case "Option3":
          // Some code
          break;
  }
  </code></pre>
  
  <p>Is there any direct way so that I can only get the name of the checked radio button?</p>