I will do as you have requested, thank you for the advice jmcilhinney, and yes your right i would want to fix the error. Now the reason the If statement is in there is because when i run the program, (without the if statement) the statement "lstvproc.Items(Count).SubItems.Add(Process.Id)" of that process that has an empty path, actually moves to the column of where the location is, so the location displays as the "id" of the process, which i dont want, so i fill in the blank and put "". and it works. though, now i guess the reason it does that it would be because of the error?