title: Assign a value to a shared variable?
body: <p>I need help assigning a value to a public shared variable i made.</p>
  
  <pre><code>Public Shared craftability As String = "Craftable"
  Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
      If CheckBox1.Checked = True Then
          craftability = "Non-Craftable"
      Else
          craftability = "Craftable"
      End If
  </code></pre>
  
  <p>When i try to use the value i assigned to it in another subclass it says:</p>
  
  <p><em>Variable 'craftability' is used before it has been assigned a value. A null reference exception could result at runtime.</em></p>
  
  <p>and returns a null value.</p>