lvChief.Items.Remove(lvChief.Items.Item(0))
Next
End If
I created a button to do lvChief.Items.Remove(lvChief.Items.Item(0)), the
number of times that corresponds to the number of entries in my listview, it
removes them, but when I use the above steps, I get an:
System.ArgumentOutOfRangeException:index
Thanks
Scott
2. When iterating the listview (or any other type from the Collections
namespace), change the "Index = 1" to start at 0 instead
3. Why not use the Items.Clear method?
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Scott Toney" <sc...@spine-brain.com> wrote in message
news:11ecm25...@corp.supernews.com...
lvChief.Items.Clear()
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org
"Scott Toney" <sc...@spine-brain.com> wrote in message
news:11ecm25...@corp.supernews.com...
--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
"Scott Toney" <sc...@spine-brain.com> wrote in message
news:11ecm25...@corp.supernews.com...
"Chris Tacke, eMVP" <cta...@spamfree-opennetcf.org> wrote in message
news:%23x0Zmlf...@TK2MSFTNGP09.phx.gbl...
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Scott Toney" <sc...@spine-brain.com> wrote in message
news:11ecqm7...@corp.supernews.com...
"Daniel Moth" <dmo...@hotmail.com> wrote in message
news:udDNyMgk...@tk2msftngp13.phx.gbl...