title: How to add radiobutton and combobox selections into a listbox in C#?
body: <h2>Heading</h2>
  
  <p>I have a form that has radiobutton A, B, C and a comboBox with numbers 0, 1, 3.
  What I am attempting to do is create List of characters for each selected radiobutton and a  List of integers for each selected item in comboBox. Then, I want them to load it into a created listBox. </p>
  
  <p>This is a portion of my code: </p>
  
  <pre><code>if (!(radA.Checked || radB.Checked || radC.Checked || radD.Checked || radF.Checked)) 
  { 
  MessageBox.Show("A grade must be selected."); 
  } 
  else if (radA.Checked) 
  { //add the checked radiobutton into List&lt;int&gt; letGrade 
      allGrades.Add('A'); 
  } 
  </code></pre>
  
  <p>I'm also implementing the same approach in the comboBox:</p>
  
  <pre><code>     if (cboCreditHrs.SelectedIndex == -1)//if" no credit is selected
        {
                      MessageBox.Show("Credit hours must be selected.");
                  }
                  else if (cboCreditHrs.SelectedIndex == 0)
                  {
                      allHours.Add(0);
                  }
                  else if (cboCreditHrs.SelectedIndex == 1)
                  {
                      allHours.Add(1);
                  }          
  </code></pre>
  
  <p>I have not created the the other List&lt;>. However, my desire is to load all the List&lt;> items of each list into the listBox and I'm uncertain as to how to implement this?</p>
  
  <p>The result in the ListBox should display: </p>
  
  <p>A - 1 - A1, where A1 is the sum of A &amp;1.</p>