title: Using Variables Across Forms - VB
body: <p>I've got a fairly simple question (I think) on passing variables between forms using Visual Basic.</p>
  
  <p>I've got a program with 2 forms (Form1 and Form2). Form1 has 3 radio buttons, which the user has to select one of and then loads Form2.</p>
  
  <p>Now I've made it so that if radiobutton1 is picked, the Public Variable "radio_select" will equal "radiobutton1", if radiobutton2 is picked, "radio_select" will equal "radiobutton2".</p>
  
  <p>But whenever I try call "radio_select" in my second form, it comes up blank. Why could this be? And how can I fix it.</p>
  
  <p>I've tried using <code>if form1.radiobutton1.checked = true</code> but I keep getting the first radiobutton, regardless of the radio button I've selected.</p>
  
  <p>I think the form is being unloaded, or there is an issue somewhere there, as it appears none of the variables get passed to the second form, once it has been initialized. Also note, the first form is hidden <code>Me.Hide()</code> when the second form is called. </p>