Yeah listviews use ListViewItem objects as opposed to just a bunch of
objects. ListViewItem has a clone method on it for that
james wrote:
> "DeveloperX" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > This works, although I don't know if it's optimal.
> >
> > comboBox1.Items.Add("an item");
> > object[] a= new object[comboBox1.Items.Count];
> > comboBox1.Items.CopyTo(a,0);
> > comboBox2.Items.AddRange(a);
> >
> I'll give it a try - there won't be too many items, so optimal isn't too
> much of a worry.
>
> I also lied - copying listview items like that doesn't work! It compiles,
> but at runtime, it says I can't have that item in more than one location
> unless I clone it?