You have to use following two code in your program to fix this problem. You have to first use following code. In the following code I have use for loop to search for particular item until end of the list.
Code:
for (int intCounts = 0; intCounts < lstsRectss.Count; intCounts++)
{
if (lstsRectss[intCounts] == new Rectangle(1500, 1300, 16, 16))
{
}
}
After this you have to write following.
Code:
for (int intCounts = 0; intCounts < lstsRectss.Count; intCounts++)
{
if (lstsRectss[intCounts] == new Rectangle(1500, 1300, 16, 16))
{
}
}
Bookmarks