Windows Develop Bookmark and Share   
 index > Windows Forms General > listview problem
 

listview problem

Hi,
I recieve an error "stackoverflow in unknown module" while trying to add items to a listView.

foreach(String str in list)
{
if(listView1.FindItemWithText(str) == null)
{
listView1.Items.Add(str); <-- The exception occurs here
}
}

Can someone suggest what I am missing here?
Thanks!

akin_l  Tuesday, February 06, 2007 5:58 AM

This few lines of codes you post seem to have no problem, I test it and works well, maybe somewhere else gone wrong. What kind of type of the "list"? How did you assign values to the list?

Zhi-Xin Ye  Tuesday, February 06, 2007 7:32 AM

You can use google to search for other answers

Custom Search

More Threads

• How to use the CLRProfiler?
• General windows forms design question...
• Passing data from Login form back to main Application Context
• scrollbars in windowsforms
• why cannot get new processes list?
• I am at a total loss on this issue
• Converting RTF into plain text
• Text box + mouse Event
• Window shrinking on restore.
• WebBrowser control : how to get a reference for an embed objet ?