Tag problem c# listbox

Posted by Poppy on Stack Overflow See other posts from Stack Overflow or by Poppy
Published on 2010-03-18T14:14:54Z Indexed on 2010/03/18 14:21 UTC
Read the original article Hit count: 371

Filed under:
|
|

Hi i'm trying to use the tag item of a listbox.

heres my code.

            int number = 0;
            foreach (ListViewItem item in listBox1.Items)
            {
                Tag tag = (Tag) item.Tag;
                saveSlide(showid, tag.photoid, enumber);
                number++;
            }

problem im havin is when i run the program i get an error message sayin cannot convert type string to system.ListView but i haven't declared item as a string anywher in my program

© Stack Overflow or respective owner

Related posts about tag

Related posts about listbox