InvalidArgument=「4」の値は「インデックス」には無効です。パラメータ名:インデックス
ここに私のコードがあります
if (lvnames.Items.Count > 0)
{
for (int x = 0; x < lvScratch.Items.Count; x++)
{
**lvnames.Items[x].SubItems[4].Text = lvnamestemp.Items[x].SubItems[0].Text;**
}
}
else
{
MessageBox.Show("No Record", "Empty", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
私の lvnames.Items には 4 つの列があり、私の lvnamestemp には 3 つの列があります
コードを実行すると、太字のコードで InvalidArgument=Value of '4' というエラーが発生しました