title: Retrieve radio button value from groupbox
body: <p>I have 3 radio buttons in a groupbox. I have coded what I thought was correct, but the event only works on one radio button. For example, rdbServiceStandard if clicked displays a value for rbServicePermanent which is 'P', where it should be displaying 'S' and sometimes it dosen't fire at all. I guess my question is, have I coded correctly to retrieve values from radio buttons is a groupbox. Many thanks</p>
  
  <p><strong>groupbox</strong> </p>
  
  <p>gbxServiceLevel</p>
  
  <p><strong>radio buttons</strong> </p>
  
  <p>rdbServiceStandard</p>
  
  <p>rbServicePermant</p>
  
  <p>rdbServiceRapid</p>
  
  <p><strong>Variable to hold value</strong></p>
  
  <p>rbServiceLevel</p>
  
  <pre><code>Private Sub gbxServiceLevel_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gbxServiceLevel.Enter
          If rdbServiceStandard.Checked Then
              rbServiceLevel = "S"
          ElseIf rdbServiceRapid.Checked Then
              rbServiceLevel = "R"
          ElseIf rdbServicePermanent.Checked Then
              rbServiceLevel = "P"
          End If
          MessageBox.Show(rbServiceLevel)
      End Sub
  </code></pre>