Error when trying to select all items in listbox on button click event
<p>Error :</p>

<p>Unable to cast object of type 'System.String' to type 'System.Windows.Forms.ListBox'.</p>

<pre><code>   private void button3_Click(object sender, EventArgs e)
    {
        foreach (ListBox item in SelectTables_Listbox.Items)
        {
            item.SelectedItem = true;
        }

        MessageBox.Show(" All tables Selected ");
    }
</code></pre>
