title: Radiobutton does'nt react on first click in my windows forms application
body: <p>I have a windows forms application that contains three different groupboxes with at least seven radiobuttons in each groupbox, one listbox (that shows the text from the checked radiobutton and one button that will send away the text from the checkboxes into a database. Everything works fine but my radiobuttons.</p>
  
  <p>My problem is that you have to click on the radiobutton twice for it to be displayed in my listbox and later on sent away into my database, and I don't understand why?</p>
  
  <p>In my code I have three empty variables:</p>
  
  <pre><code>    string flowerValueRadioButton = string.Empty;
      string fruitValueRadioButton = string.Empty;
      string candyValueRadioButton = string.Empty;
  </code></pre>
  
  <p>And I declare each of the variables in a foreach loop, like this :</p>
  
  <pre><code>private void candyGroupBox_Enter(object sender, EventArgs e)
      {
          foreach (RadioButton candyRadioButton in candyGroupBox.Controls)
          {
  
              if (candyRadioButton.Checked == true)
              {
                  receiptListBox.Items.Add(candyRadioButton.Text);
                  candyValueRadioButton = candyRadioButton.Text;
              }
  
              if (candyRadioButton.Checked == false)
              {
                  receiptListBox.Items.Remove(candyRadioButton.Text);
              }
          }
      }
  </code></pre>
  
  <p>What do I need to do for my radiobutton value to get in to my database and listbox on the first click?
  Thank you</p>