title: VB.net Null error
body: <p>Im having an issue trying to handle a  <em>ArgumentNullExeption occured</em></p>
  
  <p><em>value cant be Null</em></p>
  
  <p><em>paramiter name item</em></p>
  
  <p>So far ive tried the following</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
          Dim ArgumentNullException As New Boolean
          If (ListBox2.Items.Add(ListBox1.SelectedItem.ToString = "")) Then
             MessageBox.Show("please pick from list", "error")
          End If
          ListBox1.Items.Remove(ListBox1.SelectedItem)
  
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
          Dim ArgumentNullException As New Boolean
          If (ListBox2.Items.Add(ListBox1.SelectedItem Is Nothing)) Then
             MessageBox.Show("please pick from list", "error")
          End If
          ListBox1.Items.Remove(ListBox1.SelectedItem)
  
  
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
          Dim ArgumentNullException As New BooleanListBox2
          ListBox2.Items.Add(ListBox1.SelectedItem)
          If (ListBox1.SelectedItem) = ""
             MessageBox.Show("please pick from list", "error")
          ListBox1.Items.Remove(ListBox1.SelectedItem)
  </code></pre>
  
  <p>And error still comes up can anyone assist please</p>
  
  <p>Updated:</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
              ListBox2.Items.Add(ListBox1.SelectedItem)
              If IsNothing (ListBox1.SelectedItem)
                 MessageBox.Show("please pick from list", "error")
              ListBox1.Items.Remove(ListBox1.SelectedItem)
  </code></pre>
  
  <p>Gives error still</p>