title: How to get value from dynamic radio button
body: <p>I'm creating the 3 radio buttons in a private sub like such:</p>
  
  <pre><code>For counter As Integer = 0 To rc - 1
  
      'controller name Radio button and properties.
      Dim dynRadio As New RadioButton()
      Me.Controls.Add(dynRadio)
      With dynRadio
         .Name = CStr(ds.Tables("MakeThisNameMeaningful").Rows(counter).Item(0))
         .Location = New Point(xAxis, yAxis)
         .TabStop = False
         .Text = CStr(ds.Tables("MakeThisNameMeaningful").Rows(counter).Item(0))
         .Width = 80
      End With
  
      yAxis = yAxis + 40
   Next
  </code></pre>
  
  <p>The radios get drawn ok.  So I have 3 radios with the text (result of select from db) controller1, controller2, controller3</p>
  
  <p>I've triead all sorts and couldnt' find anything on Google.  Oh, I should mention that I'm trying to get the radio value from another private sub.  I want to do along the lines of:</p>
  
  <pre><code>If controller1.Selected = true then
      'do stuff
  End if
  </code></pre>
  
  <p>I know the above is wrong but not sure how to determine which radio is selected :(</p>
  
  <p>Cheers,
  J</p>