Quote:
argument out of range exception
invalid argument=value of 0 is not a valid of index
This message have 2 possible origins.
-Either there was a fail and the variable do contain NULL instead of the expected object.
-Or the list object you try to access is smaller than you expect and you try access an element than do not exist.
lbl_id.Text = listView1.SelectedItems[0].Text;
For example, what is the size of
SelectedItems
if there is no selection ?
You will have to check its size in case it is 0.