I am getting error : The type or namespace name 'List Item' could not be found. How to get rid of it?
<p>I am making a code to move the elements of a list box up and down. For that i have made two buttons to move the element up(Move Up button) and down(Move Down Button).Here is my code:</p>

<pre><code>if (m_lbOPFfiles.SelectedIndex != m_lbOPFfiles.Items.Count &amp;&amp; m_lbOPFfiles.SelectedIndex != -1)
        {
            ListItem item = m_lbOPFfiles.SelectedItem;
            int index = m_lbOPFfiles.SelectedIndex;
            m_lbOPFfiles.Items.RemoveAt(index);
            lstResdetails.Items.Insert(index + 1, item);
         }
</code></pre>

<p>Now i am getting the namespace error for ListItem. Can anyone help me rectify it?</p>
