المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Repeat For Each ListView Item



C# Programming
08-12-2009, 02:22 PM
ive got this code, and it works for my old app, but for this one it doesnt work :S
it just repeats the same process with the first item from the listview.
i want it to run through each of them.
and dont worry, i want it to be continuous.
please help :S


while (0 == 0)
{
int iCount = lvAccounts.Items.Count;
string inputURL = textBox1.Text;
inputURL = inputURL.Replace("http://", null);


ListViewItem[] accUserPass = new ListViewItem[iCount];
lvAccounts.Items.CopyTo(accUserPass, 0);

for (int i = 0; i <span class="code-keyword">